-
Notifications
You must be signed in to change notification settings - Fork 1
/
example-compose.yml
48 lines (46 loc) · 2.63 KB
/
example-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
services:
boston-posting-tool:
container_name: boston-posting-tool
image: grahams/snfc-posting-tool:latest
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.tool-boston.rule=Host(`tool.sundaynightfilmclub.com`) && PathPrefix(`/tool/boston`)"
- "traefik.http.routers.tool-boston.entrypoints=https"
- "traefik.http.routers.tool-boston.tls=true"
- "traefik.http.routers.tool-boston.tls.certresolver=namecheap"
- "traefik.http.routers.tool-boston.tls.domains[0].main=tool.sundaynightfilmclub.com"
- "traefik.http.routers.tool-boston.tls.domains[0].sans=*.tool.sundaynightfilmclub.com"
- "traefik.http.routers.tool-boston.middlewares=tool-boston-stripprefix"
- "traefik.http.middlewares.tool-boston-stripprefix.stripprefix.prefixes=/tool/boston"
- "traefik.http.services.tool-boston.loadbalancer.server.port=8000"
volumes:
- '/opt/docker/data/tool.sundaynightfilmclub.com/boston/config.json:/project/config.json'
- '/opt/docker/data/tool.sundaynightfilmclub.com/boston/credentials.json:/project/credentials.json'
- '/opt/docker/data/tool.sundaynightfilmclub.com/boston/token.json:/project/token.json'
networks:
- proxy
dc-posting-tool:
container_name: dc-posting-tool
image: grahams/snfc-posting-tool:latest
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.tool-dc.rule=Host(`tool.sundaynightfilmclub.com`) && PathPrefix(`/tool/dc`)"
- "traefik.http.routers.tool-dc.entrypoints=https"
- "traefik.http.routers.tool-dc.tls=true"
- "traefik.http.routers.tool-dc.tls.certresolver=namecheap"
- "traefik.http.routers.tool-dc.tls.domains[0].main=tool.sundaynightfilmclub.com"
- "traefik.http.routers.tool-dc.tls.domains[0].sans=*.tool.sundaynightfilmclub.com"
- "traefik.http.routers.tool-dc.middlewares=tool-dc-stripprefix"
- "traefik.http.middlewares.tool-dc-stripprefix.stripprefix.prefixes=/tool/dc"
- "traefik.http.services.tool-dc.loadbalancer.server.port=8000"
volumes:
- '/opt/docker/data/tool.sundaynightfilmclub.com/dc/config.json:/project/config.json'
- '/opt/docker/data/tool.sundaynightfilmclub.com/dc/credentials.json:/project/credentials.json'
- '/opt/docker/data/tool.sundaynightfilmclub.com/dc/token.json:/project/token.json'
networks:
- proxy
networks:
proxy:
external: true