From fc5563096b04d6ef8226657313393e969e91ec6d Mon Sep 17 00:00:00 2001 From: draganczukp Date: Sun, 16 Feb 2020 16:53:18 +0100 Subject: [PATCH] merge --- docker-compose.yml | 41 +++++++++++++++++++++++++++++++---------- 1 file changed, 31 insertions(+), 10 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 764631b..6e38353 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,12 +1,33 @@ version: "3" services: - url: - # TODO: Publish to docker hub - build: - context: . - ports: - - 4567:4567 - environment: - - file.location=/urls.csv - volumes: - - ./urls.csv:/urls.csv \ No newline at end of file + url: + # TODO: Publish to docker hub + build: + context: . + # ports: + # - 4567:4567 + environment: + - file.location=/urls.csv + volumes: + - ./urls.csv:/urls.csv + networks: + - ${NETWORK} + labels: + - "traefik.enable=true" + - "traefik.http.routers.url.entrypoints=http" + - "traefik.http.routers.url.rule=Host(`url.${TLD}`)" + - "traefik.http.middlewares.url-https-redirect.redirectscheme.scheme=https" + - "traefik.http.routers.url.middlewares=url-https-redirect" + - "traefik.http.routers.url-secure.entrypoints=https" + - "traefik.http.routers.url-secure.rule=Host(`url.${TLD}`)" + - "traefik.http.routers.url-secure.tls=true" + - "traefik.http.routers.url-secure.tls.certresolver=http" + - "traefik.http.routers.url-secure.service=url" + - "traefik.http.services.url.loadbalancer.server.port=4567" + - "traefik.docker.network=proxy" + restart: ${RESTART} + +networks: + proxy: + external: true +