blob: 257e6f296e5c13a0f4f4c527125766e54b95e6aa (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
services:
postgres_db:
image: postgres:16.1-alpine3.19
container_name: bolt_postgresql_db
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
ports:
- "${BOLT_DB_PORT:?err}:5432"
environment:
- POSTGRES_DB=${BOLT_DB_NAME:?err}
- POSTGRES_USER=${BOLT_DB_USER:?err}
- POSTGRES_PASSWORD=${BOLT_DB_PASSWORD:?err}
volumes:
- postgres_db_volume:/var/lib/postgresql/data
volumes:
postgres_db_volume:
name: postgres-db-volume
|