Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add traefik-proxy example #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions traefik-proxy/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# traefik-proxy
59 changes: 59 additions & 0 deletions traefik-proxy/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
version: "2"

services:
traefik:
image: traefik
command: --web --docker --docker.domain=docker.localhost
restart: always
networks:
- webgateway
ports:
- "80:80"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /dev/null:/traefik.toml

portainer:
image: portainer/portainer
command: -H unix:///var/run/docker.sock
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./portainer/data:/data
labels:
- "traefik.port=9000"
- "traefik.backend=portainer"
- "traefik.frontend.rule=Host:portainer.docker.localhost"
networks:
- webgateway

ambassador:
image: svendowideit/ambassador
links:
- traefik
labels:
- "traefik.port=8080"
- "traefik.backend=ambassador"
- "traefik.frontend.rule=Host:ambassador.docker.localhost"
environment:
- TRAEFIK_PORT_8080_TCP=tcp://traefik:8080
networks:
- webgateway

zookeeper:
image: zookeeper
restart: always
ports:
- "2181:2181"
- "2888:2888"
- "3888:3888"
labels:
- "traefik.port=9090"
- "traefik.backend=zookeeper"
- "traefik.frontend.rule=Host:zookeeper.docker.localhost"
networks:
- webgateway

networks:
webgateway:
driver: bridge
Binary file added traefik-proxy/portainer/data/portainer.db
Binary file not shown.
11 changes: 11 additions & 0 deletions traefik-proxy/traefik.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[web]
address = ":8080"

[docker]
domain = "docker.local"
watch = true

[zookeeper]
endpoint = "127.0.0.1:2181"
watch = true
prefix = "traefik"