Created
November 18, 2016 17:24
-
-
Save allamand/e4f6a6229804007fa8f1a37761745031 to your computer and use it in GitHub Desktop.
Shipyard on Docker Swarm with Traekif
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
version: '2' | |
services: | |
rethinkdb: | |
image: rethinkdb:latest | |
labels: | |
- "traefik.enable=false" | |
volumes: | |
- shipyard_db:/data | |
networks: | |
- back | |
shipyard: | |
image: shipyard/shipyard:latest | |
container_name: shipyard-controller | |
restart: always | |
expose: | |
- "8080" | |
depends_on: ["rethinkdb"] | |
volumes: | |
- /etc/docker/swarm:/ssl:ro | |
command: | | |
--debug | |
server | |
-d tcp://${IP_SWARM_MASTER1}:3376 | |
--tls-ca-cert=/ssl/ca.pem | |
--tls-cert=/ssl/server.pem | |
--tls-key=/ssl/server-key.pem | |
labels: | |
- "traefik.backend=shipyard" | |
- "traefik.port=8080" | |
- "traefik.frontend.rule=Host:shipyard.${PROXY_DNS}" | |
- "traefik.docker.network=traefik_net" | |
networks: | |
- traefik_net | |
- back | |
networks: | |
traefik_net: | |
external: true | |
back: | |
driver: overlay |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment