-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (53 loc) · 1.47 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
---
version: "3"
services:
umami:
image: ghcr.io/umami-software/umami:postgresql-latest
ports:
- "3000:3000"
env_file: .env
depends_on:
db:
condition: service_healthy
labels:
- traefik.enable=true
- traefik.docker.network=traefik-public
- traefik.constraint-label=traefik-public
- traefik.http.routers.umami-http.rule=Host(`umami.${PRIMARY_DOMAIN}`)
- traefik.http.routers.umami-http.entrypoints=http
- traefik.http.routers.umami-http.middlewares=https-redirect
- traefik.http.routers.umami-https.rule=Host(`umami.${PRIMARY_DOMAIN}`)
- traefik.http.routers.umami-https.entrypoints=https
- traefik.http.routers.umami-https.tls=true
- traefik.http.routers.umami-https.tls.certresolver=le
- traefik.http.services.umami.loadbalancer.server.port=3000
init: true
networks:
- default
- traefik-public
restart: always
healthcheck:
test: ["CMD-SHELL", "curl http://localhost:3000/api/heartbeat"]
interval: 5s
timeout: 5s
retries: 5
db:
image: postgres:15-alpine
env_file: .env
networks:
- default
volumes:
- umami-db-data:/var/lib/postgresql/data
restart: always
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 5
volumes:
umami-db-data:
networks:
traefik-public:
external: true
default:
external: false