Last active
August 22, 2017 05:50
-
-
Save ondrejsika/abb976664cdda90da7c632d2257f6704 to your computer and use it in GitHub Desktop.
This file contains hidden or 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: | |
redis: | |
image: redis:3.2-alpine | |
ports: | |
- "6379" | |
networks: | |
- voteapp | |
deploy: | |
placement: | |
constraints: [node.role == manager] | |
app: | |
image: ondrejsika/testapp | |
ports: | |
- 80:80 | |
networks: | |
- voteapp | |
depends_on: | |
- redis | |
deploy: | |
mode: replicated | |
replicas: 4 | |
placement: | |
constraints: [node.role == worker] | |
networks: | |
voteapp: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment