2025-01-03 15:04:32 +01:00
|
|
|
name: lwb6
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
2025-01-03 16:48:13 +01:00
|
|
|
db:
|
|
|
|
build:
|
|
|
|
context: ../
|
|
|
|
dockerfile: docker/Dockerfile.database
|
|
|
|
restart: always
|
|
|
|
shm_size: 128mb
|
|
|
|
volumes:
|
|
|
|
- database:/var/lib/postgresql/data
|
|
|
|
environment:
|
|
|
|
LW_DB_NAME: ${LW_DB_NAME}
|
|
|
|
LW_DB_USER: ${LW_DB_USER}
|
|
|
|
LW_DB_USER_PASS_FILE: /run/secrets/lw_db_password
|
|
|
|
POSTGRES_PASSWORD_FILE: /run/secrets/db_password
|
|
|
|
secrets:
|
|
|
|
- db_password
|
|
|
|
- lw_db_password
|
|
|
|
|
2025-01-03 15:04:32 +01:00
|
|
|
backend:
|
|
|
|
build:
|
|
|
|
context: ..
|
2025-01-03 16:13:34 +01:00
|
|
|
dockerfile: docker/Dockerfile.application
|
|
|
|
target: backend
|
2025-01-03 15:04:32 +01:00
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
LW_CONFIGURE: 1
|
|
|
|
LW_DB_HOST: db
|
2025-01-03 16:48:13 +01:00
|
|
|
LW_DB_NAME: ${LW_DB_NAME}
|
|
|
|
LW_DB_USER: ${LW_DB_USER}
|
2025-01-03 15:04:32 +01:00
|
|
|
LW_DB_PASSWORD_FILE: /run/secrets/lw_db_password
|
|
|
|
secrets:
|
|
|
|
- lw_db_password
|
|
|
|
|
2025-01-03 16:14:25 +01:00
|
|
|
web-main:
|
|
|
|
build:
|
|
|
|
context: ..
|
|
|
|
dockerfile: docker/Dockerfile.application
|
|
|
|
target: lwmain
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
LW_BACKEND_HOST: backend
|
|
|
|
|
|
|
|
web-admin:
|
|
|
|
build:
|
|
|
|
context: ..
|
|
|
|
dockerfile: docker/Dockerfile.application
|
|
|
|
target: lwadmin
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
LW_BACKEND_HOST: backend
|
|
|
|
|
2025-01-03 16:48:13 +01:00
|
|
|
volumes:
|
|
|
|
database:
|
|
|
|
|
2025-01-03 15:04:32 +01:00
|
|
|
secrets:
|
2025-01-03 16:48:13 +01:00
|
|
|
db_password:
|
|
|
|
environment: DB_PASSWORD
|
2025-01-03 15:04:32 +01:00
|
|
|
lw_db_password:
|
|
|
|
environment: LW_DB_PASSWORD
|