Last active
August 18, 2024 10:58
-
-
Save sae13/9a6b0a1821a1475d9a6132d809ca1d63 to your computer and use it in GitHub Desktop.
traefik sample
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
docker run --rm --name phpmyadmin --label traefik.http.routers.phpmyadmin.rule=Host\(\`phpmyadmin.local\`\) \ | |
--net traefik phpmyadmin:latest |
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
docker network create traefik | |
docker run -v /run/docker.sock:/var/run/docker.sock:ro -v ./traefik.yaml:/etc/traefik/traefik.yaml --rm \ | |
--name traefik --network traefik -p 80:80 -p 8080:8080 -p 443:443 traefik |
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
providers: | |
docker: | |
endpoint: "unix:///var/run/docker.sock" | |
log: | |
level: TRACE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment