linuxkit/projects/compose/docker-compose.yml
Avi Deitcher e4512864ac add compose dynamic
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2017-06-04 16:18:34 +03:00

26 lines
639 B
YAML

version: '2.1'
services:
a:
image: nginx:alpine
volumes:
- /var/html/a:/usr/share/nginx/html
labels:
- "traefik.backend=a"
- "traefik.frontend.rule=Host:a.docker.localhost"
b:
image: nginx:alpine
volumes:
- /var/html/b:/usr/share/nginx/html
labels:
- "traefik.backend=b"
- "traefik.frontend.rule=Host:b.docker.localhost"
- "traefik.port=80"
proxy:
image: traefik
command: --web --docker --docker.domain=docker.localhost --logLevel=DEBUG
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /dev/null:/traefik.toml