Created
October 31, 2020 00:46
-
-
Save mkaczanowski/a8828bb6e17e2216afba57923b1a74e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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