Created
November 16, 2019 17:15
-
-
Save andresgutgon/658e601ee56b27ffa5486c5c86a3bdb5 to your computer and use it in GitHub Desktop.
docker-compose.yml
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.3" | |
services: | |
traefik: | |
image: traefik:$TRAEFIK_VERSION | |
command: | |
- --log.level=DEBUG # DEBUG, INFO, WARN | |
- --global.sendAnonymousUsage=false | |
- --api.insecure | |
- --providers.docker | |
# Dev SSL certificate | |
- --entrypoints.web.address=:80 | |
- --entrypoints.websecure.address=:443 | |
- --providers.docker.tls.insecureSkipVerify=true | |
- --providers.docker.tls.cert=/etc/certs/reciperi.localhost.pem | |
- --providers.docker.tls.key=/etc/certs/reciperi.localhost-key.pem | |
ports: | |
- "80:80" | |
- "443:443" | |
- "8080:8080" | |
volumes: | |
- "/var/run/docker.sock:/var/run/docker.sock:ro" | |
# Local dev certificates | |
- ./devcerts:/etc/certs | |
backend: | |
image: containous/whoami:v1.3.0 | |
command: | |
# It tells whoami to start listening on 8082 instead of 80 | |
- --port=4000 | |
labels: | |
- "traefik.http.routers.backend.rule=Host(`$ELIXIR_BACKEND_DOMAIN`)" | |
- "traefik.http.services.backend.loadbalancer.server.port=4000" |
Author
andresgutgon
commented
Nov 16, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment