mirror of
https://github.com/logos-messaging/go-waku-compose.git
synced 2026-01-04 05:53:07 +00:00
Merge pull request #13 from waku-org/fix/use-volume-for-pg
fix: use volume for PG data
This commit is contained in:
commit
1e5e465b10
@ -109,6 +109,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./postgres_cfg/postgresql.conf:/etc/postgresql/postgresql.conf:Z
|
- ./postgres_cfg/postgresql.conf:/etc/postgresql/postgresql.conf:Z
|
||||||
- ./postgres_cfg/db.sql:/docker-entrypoint-initdb.d/db.sql:Z
|
- ./postgres_cfg/db.sql:/docker-entrypoint-initdb.d/db.sql:Z
|
||||||
|
- ${PG_DATA_DIR:-./postgresql}:/var/lib/postgresql/data:Z
|
||||||
command: postgres -c config_file=/etc/postgresql/postgresql.conf
|
command: postgres -c config_file=/etc/postgresql/postgresql.conf
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -d db_prod"]
|
test: ["CMD-SHELL", "pg_isready -d db_prod"]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user