Skip to content

Instantly share code, notes, and snippets.

@hanspagel
Last active January 6, 2018 22:44
Show Gist options
  • Save hanspagel/7a46a9b10a818f85a31b3c06f1c52ac2 to your computer and use it in GitHub Desktop.
Save hanspagel/7a46a9b10a818f85a31b3c06f1c52ac2 to your computer and use it in GitHub Desktop.
version: "3"
services:
traefik:
image: traefik
command: -c /dev/null --web --docker --docker.domain=docker.localhost --logLevel=DEBUG
ports:
- "80:80"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
api:
build:
context: ./api
dockerfile: Dockerfile
volumes:
- "./api/src:/var/www:rw,cached"
labels:
- "traefik.backend=api"
- "traefik.frontend.rule=Host:local.api.scrumpy.io"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment