This repository was archived by the owner on Jun 20, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (75 loc) · 1.45 KB
/
Copy pathdocker-compose.yml
File metadata and controls
78 lines (75 loc) · 1.45 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
68
69
70
71
72
73
74
75
76
77
78
version: "3.9"
services:
router:
image: ghcr.io/m50/fono/router:latest
restart: always
environment:
UI: record
API: gramophone
volumes:
- caddy_data:/data
- caddy_config:/config
ports:
- "80:80"
- "443:433"
- "2019:2019"
networks:
- frontend
depends_on:
- record
- gramophone
gramophone:
image: ghcr.io/m50/fono/gramophone:latest
restart: always
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3001"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s
ports:
- "3000:3000"
depends_on:
- db
- cache
networks:
- backend
- frontend
record:
image: ghcr.io/m50/fono/record:latest
restart: always
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- frontend
cache:
image: redis:alpine
restart: always
networks:
- backend
db:
image: mariadb:10.5
restart: always
networks:
- backend
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: "${DB_PASSWORD}"
MYSQL_USER: "${DB_USER}"
MYSQL_PASSWORD: "${DB_PASSWORD}"
MYSQL_DATABASE: "${DB_DATABASE}"
volumes:
- database:/var/lib/mysql
volumes:
logs:
database:
caddy_data:
caddy_config:
networks:
frontend:
backend: