Skip to content

Instantly share code, notes, and snippets.

Created March 2, 2017 02:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/e44b25b0af918f9315e4605eab87d36e to your computer and use it in GitHub Desktop.
Save anonymous/e44b25b0af918f9315e4605eab87d36e to your computer and use it in GitHub Desktop.
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