Created
April 20, 2020 15:04
-
-
Save tomasmetal23/e72c23cb510e17e25fcc21087c719490 to your computer and use it in GitHub Desktop.
comando para ejecutar nuestro contenedor de traefik con la api de cloudflare
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 -d -e CLOUDFLARE_EMAIL=logincloudflare -e CLOUDFLARE_API_KEY=apiglobal \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
-v /opt/traefik/traefik.toml:/traefik.toml \ | |
-v /opt/traefik/servers.toml:/servers.toml \ | |
-v /opt/traefik/acme.json:/acme.json \ | |
-p 80:80 \ | |
-p 443:443 \ | |
-l traefik.frontend.rule=Host:monitor.tudominio.com \ | |
-l traefik.port=8080 \ | |
--network web \ | |
--name traefik \ | |
traefik:1.7.18-alpine |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment