-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstack.yml
More file actions
63 lines (59 loc) · 1.46 KB
/
stack.yml
File metadata and controls
63 lines (59 loc) · 1.46 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
networks:
caddy:
driver: overlay
attachable: true
services:
caddy:
image: lucaslorentz/caddy-docker-proxy
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- caddy_data:/data
environment:
- CADDY_INGRESS_NETWORKS=js2-gateway-stack_caddy
networks:
- caddy
deploy:
restart_policy:
condition: on-failure
app:
image: ghcr.io/geochemical-modeling/js2-gateway:latest
env_file:
- .env
deploy:
replicas: 1
update_config:
delay: 10s
order: start-first
restart_policy:
condition: on-failure
labels:
caddy: js2-gateway.ear180013.projects.jetstream-cloud.org
caddy.reverse_proxy: "{{upstreams 8000}}"
com.centurylinklabs.watchtower.enable: "true"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000"]
interval: 10s
timeout: 5s
retries: 3
networks:
- caddy
watchtower:
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --interval 300 --cleanup --include-stopped --revive-stopped --label-enable --monitor-only
environment:
- WATCHTOWER_NO_STARTUP_MESSAGE=true
- WATCHTOWER_DEBUG=true
networks:
- caddy
deploy:
restart_policy:
condition: on-failure
labels:
- "com.centurylinklabs.watchtower.enable=true"
volumes:
caddy_data: