-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (52 loc) · 1.4 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
50
51
52
53
54
55
56
version: "3.8"
services:
app:
image: listmonk/listmonk:latest
restart: unless-stopped
command: [sh, -c, "yes | ./listmonk --upgrade --config config.toml && ./listmonk --config config.toml"]
depends_on:
- db
environment:
- TZ=Europe/Berlin
- LISTMONK_app__address=0.0.0.0:9000
- LISTMONK_app__admin_username
- LISTMONK_app__admin_password
- LISTMONK_db__host=db
- LISTMONK_db__port=5432
- LISTMONK_db__user=listmonk
- LISTMONK_db__password=listmonk
- LISTMONK_db__database=listmonk
- LISTMONK_db__ssl_mode=disable
volumes:
- app_uploads:/listmonk/uploads
networks:
proxy_apps:
default:
db:
image: postgres:17-alpine
restart: unless-stopped
environment:
- POSTGRES_USER=listmonk
- POSTGRES_PASSWORD=listmonk
- POSTGRES_DB=listmonk
volumes:
- db_data:/var/lib/postgresql/data
networks:
default:
healthcheck:
test: ["CMD-SHELL", "pg_isready -U listmonk"]
interval: 10s
timeout: 5s
retries: 6
labels:
ofelia.restart: "true"
ofelia.enabled: "true"
ofelia.job-exec.listmonkdbbackup.schedule: "0 0 1 * * *"
ofelia.job-exec.listmonkdbbackup.command: "sh -c 'pg_dumpall -U listmonk -f /var/lib/postgresql/data/backup.sql'"
volumes:
app_uploads:
db_data:
networks:
proxy_apps:
name: proxy_apps
external: true