-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
41 lines (36 loc) · 1.65 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
version: '3.3'
services:
shiny-cromwell:
networks:
- proxy
image: sc-registry.fredhutch.org/shiny-cromwell:latest
deploy:
replicas: 4
restart_policy:
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.routers.shiny-cromwell.rule=Host(`proof.fredhutch.org`)"
- "traefik.http.routers.shiny-cromwell-secured.rule=Host(`proof.fredhutch.org`)"
- "traefik.http.routers.shiny-cromwell.entrypoints=web,web-secured"
- "traefik.http.services.shiny-cromwell.loadbalancer.server.port=3838" # it seems you always need to give traefik a port so it 'notices' the service
- "traefik.http.routers.shiny-cromwell.tls=true"
- "traefik.http.services.shiny-cromwell.loadbalancer.sticky.cookie=true"
- "traefik.http.services.shiny-cromwell.loadbalancer.sticky.cookie.name=my_sticky_cookie"
shiny-cromwell-redirect:
networks:
- proxy
image: sc-registry.fredhutch.org/shiny-cromwell-redirect:latest
deploy:
restart_policy:
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.routers.shiny-cromwell-redirect.rule=Host(`cromwellapp.fredhutch.org`)"
- "traefik.http.routers.shiny-cromwell-redirect-secured.rule=Host(`cromwellapp.fredhutch.org`)"
- "traefik.http.routers.shiny-cromwell-redirect.entrypoints=web,web-secured"
- "traefik.http.services.shiny-cromwell-redirect.loadbalancer.server.port=80" # it seems you always need to give traefik a port so it 'notices' the service
- "traefik.http.routers.shiny-cromwell-redirect.tls=true"
networks:
proxy:
external: true