-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
40 lines (38 loc) · 1.01 KB
/
docker-compose.yml
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
37
38
39
40
services:
database:
image: metakgporg/dob
container_name: dob
build: .
networks:
metaploy-private-network:
aliases:
- postgres-of-babel
environment:
- POSTGRES_USER=${DATABASE_USERNAME}
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
- POSTGRES_DB=${DATABASE_NAME}
- PGPORT=${DATABASE_PORT}
- PGHOST=${DATABASE_HOST}
- DROPBOX_APP_KEY=${DROPBOX_APP_KEY}
- DROPBOX_APP_SECRET=${DROPBOX_APP_SECRET}
- DROPBOX_ACCESS_TOKEN=${DROPBOX_ACCESS_TOKEN}
- DROPBOX_REFRESH_TOKEN=${DROPBOX_REFRESH_TOKEN}
- SLACK_INCIDENTS_WH_URL=${SLACK_INCIDENTS_WH_URL}
volumes:
- db-volume:/var/lib/postgresql/data
healthcheck:
test:
[
"CMD-SHELL",
"/backup/run_backup.sh >> /var/log/pg_dump.log 2>&1 || exit 1",
]
interval: 24h
timeout: 2m
retries: 5
restart: always
networks:
metaploy-private-network:
external: true
name: metaploy-private-network
volumes:
db-volume: