-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (46 loc) · 1.07 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
41
42
43
44
45
46
47
48
49
version: '2.1'
services:
database:
container_name: mealplan_db
image: postgres:13
restart: always
env_file: environment.conf
ports:
- 5432:5432
volumes:
- db_volume:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
app:
container_name: mealplan
image: ghcr.io/flecmart/mealplan:latest
restart: always
env_file: environment.conf
ports:
- 5000:5000
depends_on:
database:
condition: service_healthy
backups:
container_name: mealplan_backups
image: prodrigestivill/postgres-backup-local:13-alpine-af916da
restart: always
volumes:
- /var/opt/pgbackups:/backups
links:
- database
depends_on:
- database
env_file: environment.conf
environment:
- POSTGRES_EXTRA_OPTS=-Z9 --schema=public --blobs
- SCHEDULE=@daily
- BACKUP_KEEP_DAYS=7
- BACKUP_KEEP_WEEKS=4
- BACKUP_KEEP_MONTHS=6
- HEALTHCHECK_PORT=8080
volumes:
db_volume: