Repository navigation
Expand file tree
/
Copy pathdocker-stack.yml
More file actions
81 lines (77 loc) · 1.74 KB
/
Copy pathdocker-stack.yml
File metadata and controls
81 lines (77 loc) · 1.74 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
79
80
81
version: '3.8'
services:
agent:
image: ghcr.io/kiliansen/clogs-agent:${AGENTS_VERSION:-latest}
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- CLOGS_BACKEND_URL=http://server:8000
networks:
- clogs-network
deploy:
mode: global
restart_policy:
condition: on-failure
update_config:
parallelism: 1
delay: 10s
resources:
limits:
memory: 128M
reservations:
memory: 64M
server:
image: ghcr.io/kiliansen/clogs-server:${BACKEND_VERSION:-latest}
ports:
- "8000:8000"
networks:
- clogs-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
deploy:
replicas: 2
restart_policy:
condition: on-failure
update_config:
parallelism: 1
delay: 10s
order: start-first
resources:
limits:
memory: 1G
reservations:
memory: 512M
web:
image: ghcr.io/kiliansen/clogs-web:${FRONTEND_VERSION:-latest}
ports:
- "8080:5173"
environment:
- CLOGS_BACKEND_URL=http://server:8000
networks:
- clogs-network
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:5173/ || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
deploy:
replicas: 2
restart_policy:
condition: on-failure
update_config:
parallelism: 1
delay: 10s
order: start-first
resources:
limits:
memory: 1G
reservations:
memory: 512M
networks:
clogs-network:
driver: overlay