Created
September 8, 2020 07:35
-
-
Save espeon/d7aab0386c0696e292b91b87b5e174a4 to your computer and use it in GitHub Desktop.
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: | |
| reverse-proxy: | |
| # The official v2 Traefik docker image | |
| image: traefik:v2.1.6 | |
| # Enables the web UI and tells Traefik to listen to docker | |
| command: | |
| - "--api.insecure=true" | |
| - "--providers.docker=true" | |
| - "--entrypoints.https.address=:443" | |
| - "--certificatesresolvers.letsencrypt.acme.tlschallenge=true" | |
| - "--certificatesresolvers.letsencrypt.acme.caServer=https://acme-v02.api.letsencrypt.org/directory" | |
| - "[email protected]" | |
| - "--certificatesresolvers.letsencrypt.acme.storage=/letsencrypt/acme.json" | |
| - "--log.level=DEBUG" | |
| ports: | |
| # The HTTP port | |
| - "80:80" | |
| - "443:443" | |
| # The Web UI (enabled by --api.insecure=true) | |
| - "8080:8080" | |
| volumes: | |
| # So that Traefik can listen to the Docker events | |
| - /var/run/docker.sock:/var/run/docker.sock | |
| - "./letsencrypt:/letsencrypt" | |
| logging: | |
| driver: "json-file" | |
| options: | |
| max-size: "20k" | |
| max-file: "10" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment