18 lines
574 B
Plaintext
18 lines
574 B
Plaintext
pgsql:
|
|
image: 'postgres:13'
|
|
ports:
|
|
- '${FORWARD_DB_PORT:-5432}:5432'
|
|
environment:
|
|
PGPASSWORD: '${DB_PASSWORD:-secret}'
|
|
POSTGRES_DB: '${DB_DATABASE}'
|
|
POSTGRES_USER: '${DB_USERNAME}'
|
|
POSTGRES_PASSWORD: '${DB_PASSWORD:-secret}'
|
|
volumes:
|
|
- 'sailpgsql:/var/lib/postgresql/data'
|
|
networks:
|
|
- sail
|
|
healthcheck:
|
|
test: ["CMD", "pg_isready", "-q", "-d", "${DB_DATABASE}", "-U", "${DB_USERNAME}"]
|
|
retries: 3
|
|
timeout: 5s
|