Skip to content

Commit

Permalink
feat(deployment): add traefik labels to compose
Browse files Browse the repository at this point in the history
Signed-off-by: Guilhem Fanton <guilhem.fanton@gmail.com>
  • Loading branch information
gfanton committed Sep 24, 2020
1 parent af45091 commit ac155e3
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions deployments/yolo.berty.io/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ services:
yolo:
image: bertytech/yolo:latest
restart: unless-stopped
network_mode: bridge
volumes:
- ./data:/data
ports:
- 80:8000
expose:
- 8000
environment:
- BUILDKITE_TOKEN=${YOLO_BUILDKITE_TOKEN}
- CIRCLE_TOKEN=${YOLO_CIRCLE_TOKEN}
Expand All @@ -17,4 +18,15 @@ services:
- BEARER_SECRETKEY=${YOLO_BEARER_SECRETKEY}
command: -v server --cors-allowed-origins="*" --max-builds=30 --db-path=/data/yolo.sqlite --basic-auth-password="${YOLO_BASIC_AUTH_PASSWORD}" --request-timeout=10s --shutdown-timeout=11s --http-cache-path=/data/httpcache --artifacts-cache-path=/data/artifacts-cache
labels:
com.centurylinklabs.watchtower.enable: "true"
- 'com.centurylinklabs.watchtower.enable=true'
# traefik specific labels
- 'traefik.enable=true'
- 'traefik.http.routers.yolo.rule=Host(`yolo.berty.io`)'
- 'traefik.http.routers.yolo.service=yolo'
- 'traefik.http.routers.yolo.entryPoints=https'
- 'traefik.http.routers.yolo.tls=true'
- 'traefik.http.routers.yolo.tls.certresolver=cf'
- 'traefik.http.routers.yolo.tls.domains[0].main=berty.io'
- 'traefik.http.routers.yolo.tls.domains[0].sans=yolo.berty.io'

- 'traefik.http.services.yolo.loadbalancer.server.port=8000'

0 comments on commit ac155e3

Please sign in to comment.