-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-deploy.yml
62 lines (57 loc) · 1.41 KB
/
docker-compose-deploy.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
version: "3.3"
services:
cutsolver_frontend:
# use specific tags for a persistent reference
image: modischfabrications/cutsolver_frontend:1.1.0
restart: unless-stopped
environment:
- VUE_APP_BACKEND_SOLVER_URL=https://${DOMAIN_NAME:?err}/
networks:
- webserver
- cutsolver
depends_on:
- cutsolver
cutsolver:
image: modischfabrications/cutsolver:1.1.0
restart: unless-stopped
environment:
# can be increased to 1k or something once >=v1.0.3
- BRUTEFORCE_MAX_COMBINATIONS=8000
- SOLVER_N_MAX=1500
networks:
- webserver
- cutsolver
caddy:
image: caddy:2.7-alpine
restart: unless-stopped
environment:
- EMAIL_ADDRESS=${EMAIL_ADDRESS:?err}
- DOMAIN_NAME=${DOMAIN_NAME:?err}
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./caddy/data:/data
- ./caddy/config:/config
ports:
- 80:80
- 443:443
networks:
- webserver
# auto-updates
# THIS WILL RANDOMLY RESTART YOUR CONTAINERS!
watchtower:
image: containrrr/watchtower:1.4.0
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command:
- "--interval=900" # seconds
- "--cleanup"
# recovery from broken images
- "--include-stopped"
- "--revive-stopped"
networks:
webserver:
name: webserver
driver: bridge
cutsolver:
name: cutsolver