2020-02-14 19:17:56 +00:00
|
|
|
version: "3"
|
|
|
|
services:
|
2020-02-16 15:53:18 +00:00
|
|
|
url:
|
|
|
|
# TODO: Publish to docker hub
|
|
|
|
build:
|
|
|
|
context: .
|
2020-02-16 15:55:16 +00:00
|
|
|
container_name: url
|
2020-02-16 15:53:18 +00:00
|
|
|
environment:
|
|
|
|
- file.location=/urls.csv
|
2020-02-16 15:55:16 +00:00
|
|
|
- username=${URL_LOGIN}
|
|
|
|
- password=${URL_PASSWORD}
|
2020-02-16 15:53:18 +00:00
|
|
|
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
|