-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
74 lines (71 loc) · 1.77 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: "3.8"
services:
compiler-explorer:
image: ghcr.io/enzymead/enzyme-explorer:latest
ports:
- "80:10240"
volumes:
- type: volume
source: config
target: /app/compiler-explorer/etc/config
read_only: true
- type: volume
source: compilers
target: /opt/compiler-explorer
read_only: true
- type: volume
source: juliapackages
target: /local/juliapackages
labels:
- "explorer"
deploy:
mode: replicated
replicas: 2
update_config:
failure_action: rollback
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
labels:
- "explorer"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:10240/explorer"]
interval: 30s
timeout: 10s
retries: 3
start_period: 180s
compiler-builder:
image: ghcr.io/enzymead/enzyme-explorer-builder:latest
volumes:
- type: volume
source: config
target: /app/compiler-explorer/etc/config
- type: volume
source: compilers
target: /opt/compiler-explorer
- "/var/run/docker.sock:/var/run/docker.sock"
deploy:
mode: global
update_config:
failure_action: rollback
package-proxy:
image: nginx:1.27
deploy:
mode: global
update_config:
failure_action: rollback
volumes:
- "./package-proxy/nginx.conf:/etc/nginx/nginx.conf:ro"
- "./package-proxy/pkgserver.nginx.conf:/etc/nginx/conf.d/pkgserver.nginx.conf:ro"
healthcheck:
test: ["CMD", "service", "nginx", "status"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
volumes:
compilers:
config:
juliapackages: