-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (53 loc) · 1.36 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: ghcr.io/umami-software/umami:postgresql-latest
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "curl http://localhost:3000/api/heartbeat"]
interval: 5s
timeout: 5s
retries: 5
depends_on:
db:
condition: service_healthy
environment:
- DATABASE_URL=postgresql://umami:umami@db:5432/umami
- DATABASE_TYPE=postgresql
- HASH_SALT
- IGNORE_HOSTNAME
- HOSTNAME=0.0.0.0
- ENABLE_TEST_CONSOLE=1
- APP_SECRET=${HASH_SALT}
- DISABLE_TELEMETRY=1
networks:
proxy_apps:
default:
db:
image: postgres:17-alpine
restart: unless-stopped
shm_size: '128mb'
environment:
- POSTGRES_USER=umami
- POSTGRES_PASSWORD=umami
- POSTGRES_DB=umami
volumes:
- db_data:/var/lib/postgresql/data
networks:
default:
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 5
labels:
ofelia.restart: "true"
ofelia.enabled: "true"
ofelia.job-exec.umamidbbackup.schedule: "0 0 1 * * *"
ofelia.job-exec.umamidbbackup.command: "sh -c 'pg_dumpall -U umami -f /var/lib/postgresql/data/backup.sql'"
volumes:
db_data:
networks:
proxy_apps:
name: proxy_apps
external: true