Last active
March 6, 2017 22:04
-
-
Save jlk/5f094a62f5febf2c35e11b74975ef932 to your computer and use it in GitHub Desktop.
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
# Traefik started with | |
# docker service create --constraint=node.role==manager --publish 80:80 --publish 443:443 --mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock --network traefik-internal traefik --docker --docker.swarmmode --docker.domain=traefik --docker.watch --web | |
# running this with docker stack deploy --compose-file docker-compose-swarm.yml grafana | |
version: '3' | |
services: | |
grafana: | |
image: grafana/grafana:4.1.2 | |
ports: | |
- "8085:3000" | |
networks: | |
- traefik | |
deploy: | |
labels: | |
- "traefik.frontend.rule=Host:grafana.test.net" | |
- "traefik.docker.network=traefik-internal" | |
- "traefik.port=8085" | |
placement: | |
constraints: | |
- node.role == manager | |
environment: | |
- GF_SERVER_ROOT_URL=https://grafana.test.net | |
networks: | |
traefik: | |
external: | |
name: "traefik-internal" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment