docker
This commit is contained in:
parent
3156585e8e
commit
614d729232
@ -1,18 +1,23 @@
|
|||||||
services:
|
services:
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres
|
image: postgres:17
|
||||||
container_name: postgres
|
container_name: postgres
|
||||||
networks:
|
networks:
|
||||||
- pacs
|
- pacs
|
||||||
volumes:
|
volumes:
|
||||||
- ${POSTGRES_DATA_MNT}:${PGDATA}
|
- ${POSTGRES_DATA_MNT}:${PGDATA}
|
||||||
environment:
|
environment:
|
||||||
|
- PGPASSWORD='secret'
|
||||||
- POSTGRES_USER=${POSTGRES_USER}
|
- POSTGRES_USER=${POSTGRES_USER}
|
||||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||||
- POSTGRES_DB=${POSTGRES_DB}
|
- POSTGRES_DB=${POSTGRES_DB}
|
||||||
- PGDATA=${PGDATA}
|
- PGDATA=${PGDATA}
|
||||||
- PGTZ=${PGTZ}
|
- PGTZ=${PGTZ}
|
||||||
|
healthcheck:
|
||||||
|
test: [ "CMD", "pg_isready", "-q", "-d", "${DB_DATABASE}", "-U", "${DB_USERNAME}" ]
|
||||||
|
retries: 3
|
||||||
|
timeout: 5s
|
||||||
|
|
||||||
pgadmin:
|
pgadmin:
|
||||||
depends_on:
|
depends_on:
|
||||||
|
Loading…
Reference in New Issue
Block a user