Skip to content

Instantly share code, notes, and snippets.

@andresgutgon
Created November 16, 2019 17:15
Show Gist options
  • Save andresgutgon/658e601ee56b27ffa5486c5c86a3bdb5 to your computer and use it in GitHub Desktop.
Save andresgutgon/658e601ee56b27ffa5486c5c86a3bdb5 to your computer and use it in GitHub Desktop.
docker-compose.yml
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"
@andresgutgon
Copy link
Author

traefik_1  | time="2019-11-16T17:15:05Z" level=error msg="Failed to retrieve information of the docker client and server host: error during connect: Get https://%2Fvar%2Frun%2Fdocker.sock/v1.24/version: http: server gave HTTP response to HTTPS client" providerName=docker
traefik_1  | time="2019-11-16T17:15:05Z" level=error msg="Provider connection error error during connect: Get https://%2Fvar%2Frun%2Fdocker.sock/v1.24/version: http: server gave HTTP response to HTTPS client, retrying in 552.330144ms" providerName=docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment