Skip to content

Commit

Permalink
Make use of labels in the stack file
Browse files Browse the repository at this point in the history
[refs #e8c75fcabbf8]
  • Loading branch information
jfahrer committed May 5, 2018
1 parent 57eac23 commit ee35bd1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions swarm/swarm-demo/docker-stack.yml
Expand Up @@ -7,6 +7,8 @@ services:
- pg_secret
env_file:
- app.env
labels:
app: demo
deploy:
replicas: 10
update_config:
Expand All @@ -18,6 +20,9 @@ services:
condition: any
delay: 15s
max_attempts: 1
placement:
constraints:
- node.labels.region==us-west1

db:
image: jfahrer/swarm-demo-db:v1
Expand Down

0 comments on commit ee35bd1

Please sign in to comment.