From 3d5f0d22c1dafbc2cf78116b53642bd3897b220f Mon Sep 17 00:00:00 2001 From: James Mills Date: Mon, 23 Mar 2020 16:48:59 +1000 Subject: [PATCH] Added docker-compose reference stack using Traefik as LB --- docker-compose.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..2e408b0 --- /dev/null +++ b/docker-compose.yml @@ -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