Created
March 2, 2017 02:18
-
-
Save anonymous/e44b25b0af918f9315e4605eab87d36e 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
version: "3" | |
services: | |
ghost: | |
image: ghost | |
ports: | |
- 80:2368 | |
networks: | |
- frontend | |
deploy: | |
replicas: 2 | |
update_config: | |
parallelism: 1 | |
delay: 10s | |
restart_policy: | |
condition: on-failure | |
placement: | |
constraints: [node.role == worker] | |
visualizer: | |
image: dockersamples/visualizer:stable | |
ports: | |
- "8080:8080" | |
stop_grace_period: 1m30s | |
volumes: | |
- "/var/run/docker.sock:/var/run/docker.sock" | |
deploy: | |
placement: | |
constraints: [node.role == manager] | |
networks: | |
frontend: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment