Skip to content

Instantly share code, notes, and snippets.

@mkaczanowski
Created October 31, 2020 00:46
Show Gist options
  • Save mkaczanowski/a8828bb6e17e2216afba57923b1a74e8 to your computer and use it in GitHub Desktop.
Save mkaczanowski/a8828bb6e17e2216afba57923b1a74e8 to your computer and use it in GitHub Desktop.
version: "3.7"
services:
traefik:
image: "traefik:v2.3"
container_name: "traefik"
command:
- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
ports:
- "80:80"
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
pastebin:
image: mkaczanowski/pastebin:latest
container_name: pastebin
restart: always
command: --address 0.0.0.0 --port 80
ports:
- "80"
labels:
- "traefik.enable=true"
- "traefik.http.routers.pastebin.entrypoints=web"
- "traefik.http.routers.pastebin.rule=Host(`pbin.example.com`)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment