Added docker-compose reference stack using Traefik as LB

This commit is contained in:
James Mills 2020-03-23 16:48:59 +10:00
parent dc73a9ac86
commit 3d5f0d22c1
No known key found for this signature in database
GPG key ID: AC4C014F1440EBD6

36
docker-compose.yml Normal file
View file

@ -0,0 +1,36 @@
---
version: "3.8"
services:
tube:
image: prologic/tube
command: -c /config.json
configs:
- source: config_json
target: /config.json
networks:
- traefik
volumes:
- tube:/data
deploy:
labels:
- "traefik.enable=true"
- "traefik.port=8000"
- "traefik.backend=tube"
- "traefik.docker.network=traefik"
- "traefik.frontend.rule=Host:tube.mydomain.tld"
restart_policy:
condition: on-failure
replicas: 1
configs:
config_json:
file: ./config.json
networks:
traefik:
external: true
volumes:
tube:
driver: local