forked from dopos/dcape
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.inc.yml
More file actions
36 lines (33 loc) · 933 Bytes
/
docker-compose.inc.yml
File metadata and controls
36 lines (33 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
version: '2.1'
networks:
default:
driver: bridge
services:
# ------------------------------------------------------------------------------
db:
image: ${PG_IMAGE}
hostname: ${PG_HOSTNAME}
volumes:
- ./var/data/db:/var/lib/postgresql/data
- ./var/data/db-backup:/opt/backup
- ./var/data/db-conf.d:/opt/conf.d
- ./var/data/db-shared:/opt/shared
- ./var/data/db-init:/docker-entrypoint-initdb.d/
ports:
- "127.0.0.1:${PG_PORT_LOCAL}:5432"
shm_size: ${PG_SHM_SIZE}
environment:
- POSTGRES_PASSWORD=${PG_DB_PASS}
- TZ=${TZ}
- LANG=${PG_ENCODING}
- DCAPE_DB_DUMP_DEST=/opt/backup
restart: unless-stopped
labels:
- "traefik.enable=false"
healthcheck:
test: ["CMD", "pg_isready", "-q", "-U", "postgres", "-h", "db"]
interval: 2s
timeout: 3s
retries: 3
stop_grace_period: 5s
stop_signal: SIGINT