Hardened the database configuration in the Website service target.
This commit is contained in:
@@ -17,8 +17,12 @@ services:
|
||||
environment:
|
||||
LOG_LEVEL: debug
|
||||
DATABASE_DRIVER: ${DATABASE_DRIVER:-inMemory}
|
||||
DATABASE_HOST: ${DATABASE_HOST:-localhost}
|
||||
DATABASE_HOST: postgres
|
||||
DATABASE_TLS: ${DATABASE_TLS:-off}
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
required: false
|
||||
|
||||
# Local development database, started only with the `database` profile so a plain `docker compose up` still runs the
|
||||
# in-memory backend:
|
||||
@@ -45,6 +49,4 @@ services:
|
||||
retries: 10
|
||||
start_period: 30s
|
||||
volumes:
|
||||
# postgres:18 keeps its data directory under /var/lib/postgresql/<major>/docker, so the whole
|
||||
# /var/lib/postgresql tree is mounted — not the pre-18 /var/lib/postgresql/data path.
|
||||
- ./Tests/DB:/var/lib/postgresql
|
||||
|
||||
Reference in New Issue
Block a user