Update Docker Compose file to modify volume mount and clean up comments
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user