Skip to content

Instantly share code, notes, and snippets.

@Yatekii
Created May 24, 2020 18:50
Show Gist options
  • Save Yatekii/2e8cfe837ad01293baefcbd56d65b5e5 to your computer and use it in GitHub Desktop.
Save Yatekii/2e8cfe837ad01293baefcbd56d65b5e5 to your computer and use it in GitHub Desktop.
version: '3'
networks:
deploy_review-master-8dyme2-net:
external: true
services:
reverse-proxy:
# The official v2 Traefik docker image
image: traefik:v2.2
# Enables the web UI and tells Traefik to listen to docker
command: --api.insecure=true --providers.docker
ports:
# The HTTP port
- "8012:80"
# The Web UI (enabled by --api.insecure=true)
- "8084:8080"
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock
- ./traefik.toml:/etc/traefik/traefik.toml
labels:
- "traefik.http.routers.api.rule=Host(`traefik.xyz.ch`)"
- "traefik.http.routers.api.service=api@internal"
- "traefik.http.routers.api.middlewares=auth"
- "traefik.http.middlewares.auth.basicauth.users=user:$$apr1$$STpwWZyZ$$EP71rTUli5dtsFRTnRjK.0"
networks:
- deploy_review-master-8dyme2-net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment