blob: 11d95e6fb464291764be15bc0319cd4a7c70556d (
plain)
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
|
services:
src:
image: charmcli/soft-serve
volumes:
- {{ src_base }}/volumes/data:/soft-serve
ports:
- "23231:23231"
environment:
- TZ={{ timezone }}
- DEPLOYMENT_TIME={{ now() }}
- SOFT_SERVE_NAME={{ src_domain }}
- SOFT_SERVE_HTTP_PUBLIC_URL=https://{{ src_domain }}
- SOFT_SERVE_INITIAL_ADMIN_KEYS={{ src_admin_keys }}
networks:
- proxy
healthcheck:
test: ["CMD-SHELL", "echo hi"] # todo: something more meaningful
timeout: 15s
interval: 30s
retries: 3
start_period: 10s
deploy:
mode: replicated
update_config:
parallelism: 1
failure_action: rollback
order: start-first
delay: 10s
monitor: 45s
replicas: 1
labels:
- traefik.enable=true
- traefik.swarm.network=proxy
- traefik.http.routers.src.tls=true
- traefik.http.routers.src.tls.certResolver=letsencrypt
- traefik.http.routers.src.rule=Host(`{{ src_domain }}`)
- traefik.http.routers.src.entrypoints=websecure
- traefik.http.services.src.loadbalancer.server.port=23232
networks:
proxy:
external: true
|