Update Docker Compose file to modify volume mount and clean up comments

This commit is contained in:
2026-02-22 01:19:29 +05:00
parent 085727997c
commit 7db20381b7

View File

@@ -10,11 +10,10 @@ services:
PGDATA: /var/lib/postgresql/data/pgdata PGDATA: /var/lib/postgresql/data/pgdata
volumes: volumes:
- postgres_data:/var/lib/postgresql/data - postgres_data:/var/lib/postgresql/data
- ./certs:/certs:ro - ./certs:/certs
- ./init-scripts:/docker-entrypoint-initdb.d:ro - ./init-scripts:/docker-entrypoint-initdb.d:ro
- ./custom-conf:/etc/postgresql/conf.d:ro
ports: ports:
- "5432:5432" # accessible from LAN - "5432:5432"
command: > command: >
postgres postgres
-c listen_addresses='*' -c listen_addresses='*'
@@ -24,7 +23,6 @@ services:
-c ssl_ca_file=/certs/ca.crt -c ssl_ca_file=/certs/ca.crt
-c log_timezone=UTC -c log_timezone=UTC
-c timezone=UTC -c timezone=UTC
-c config_file=/etc/postgresql/conf.d/postgresql.conf
networks: networks:
- pgnet - pgnet