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