-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (62 loc) · 1.27 KB
/
docker-compose.yml
File metadata and controls
67 lines (62 loc) · 1.27 KB
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
57
58
59
60
61
62
63
64
65
66
67
services:
app:
build: .
container_name: whim-app
restart: unless-stopped
volumes:
- ./db:/app/db # Database volume
env_file:
- .env
ports:
- 3000:3000
networks:
- whimnet
caddy:
image: caddy:alpine
container_name: whim-caddy
restart: unless-stopped
cap_add:
- NET_ADMIN
ports:
- 80:80
- 443:443
- 443:443/udp
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config
depends_on:
- app
- umami
networks:
- whimnet
umami:
container_name: umami
image: docker.umami.is/umami-software/umami:postgresql-latest
restart: unless-stopped
environment:
DATABASE_URL: ${UMAMI_DATABASE_URL}
APP_SECRET: ${UMAMI_APP_SECRET}
ports:
- 3001:3000
networks:
- whimnet
umami-db:
container_name: umami-db
image: postgres:15-alpine
restart: unless-stopped
environment:
POSTGRES_DB: ${UMAMI_DB_NAME}
POSTGRES_USER: ${UMAMI_DB_USER}
POSTGRES_PASSWORD: ${UMAMI_DB_PASSWORD}
volumes:
- umami-db-data:/var/lib/postgresql/data
networks:
- whimnet
volumes:
caddy_data:
caddy_config:
umami-db-data:
networks:
whimnet:
driver: bridge