Skip to content

Commit

Permalink
Prepare the stack file for the labels example
Browse files Browse the repository at this point in the history
[refs %e8c75fcabbf8]
  • Loading branch information
jfahrer committed May 5, 2018
1 parent 09c28ab commit 57eac23
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions swarm/swarm-demo/docker-stack.yml
Expand Up @@ -2,7 +2,7 @@ version: "3.4"

services:
frontend:
image: jfahrer/swarm-demo-frontend:v8
image: jfahrer/swarm-demo-frontend:v11
secrets:
- pg_secret
env_file:
Expand All @@ -14,6 +14,10 @@ services:
parallelism: 3
delay: 3s
max_failure_ratio: 0.1
restart_policy:
condition: any
delay: 15s
max_attempts: 1

db:
image: jfahrer/swarm-demo-db:v1
Expand All @@ -38,12 +42,14 @@ services:
ports:
- 80:80
deploy:
replicas: 3
mode: global
placement:
constraints:
- node.role == manager

volumes:
pg-data:

secrets:
pg_secret:
file: ./pg_secret

0 comments on commit 57eac23

Please sign in to comment.