-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (69 loc) · 1.38 KB
/
Copy pathdocker-compose.yml
File metadata and controls
75 lines (69 loc) · 1.38 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
x-logging: &logging
driver: json-file
options:
max-size: "10m"
max-file: "3"
services:
caddy:
profiles: [prod]
image: caddy:2-alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy_data:/data
- caddy_config:/config
env_file:
- envs/.env.caddy
depends_on:
- backend
- frontend
restart: unless-stopped
logging: *logging
backend:
logging: *logging
build: ./backend
volumes:
- ./backend:/app/backend:ro
env_file:
- envs/.env.backend
depends_on:
- redis
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/schema/openapi.json"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
depends_on:
- backend
restart: unless-stopped
logging: *logging
redis:
image: redis:7-alpine
volumes:
- redis_data:/data
restart: unless-stopped
logging: *logging
worker:
build:
context: ./backend
dockerfile: worker/Dockerfile
env_file:
- envs/.env.worker
depends_on:
- redis
restart: unless-stopped
volumes:
- ./backend:/app/backend:ro
logging: *logging
volumes:
redis_data:
caddy_data:
caddy_config: