Created
July 22, 2022 02:54
-
-
Save samuelloza/5805d202fe3b8dcba607e0a7fd5c0825 to your computer and use it in GitHub Desktop.
traefik
This file contains hidden or 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.2 | |
command: | |
- --api.insecure=true | |
- --providers.docker | |
- --entrypoints.web.address=:80 | |
- --entrypoints.websecure.address=:443 | |
- --entrypoints.web.http.redirections.entrypoint.scheme=https | |
- --entrypoints.web.http.redirections.entrypoint.to=websecure | |
- [email protected] | |
- --certificatesresolvers.le.acme.storage=/acme/acme.json | |
- --certificatesresolvers.le.acme.tlschallenge=true | |
- --providers.docker.network=traefik-net | |
- --accesslog | |
- --log | |
ports: | |
- 80:80 | |
- 443:443 | |
volumes: | |
- ./acme/:/acme/ | |
- /var/run/docker.sock:/var/run/docker.sock:ro | |
networks: | |
- traefik-net | |
- traefik-internal | |
networks: | |
traefik-net: | |
external: true | |
traefik-internal: | |
external: false |
Author
samuelloza
commented
Jul 22, 2022
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment