Skip to content

Commit

Permalink
Adding a persist composition
Browse files Browse the repository at this point in the history
  • Loading branch information
Superfresh authored Nov 29, 2016
1 parent 7e47e8c commit 17ee6ec
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions cf-compositions/voting-app-persist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: '2'
services:
result:
image: 'containers101/cf-example-result:master'
command: nodemon --debug server.js
ports:
- "80"
extra_hosts:
- "db:$PERSIST_IP"
environment:
- OPTION_A=$VOTING_OPTION_A
- OPTION_B=$VOTING_OPTION_B
worker:
image: 'containers101/cf-example-worker:master'
extra_hosts:
- "db:$PERSIST_IP"
- "redis:$PERSIST_IP"
vote:
image: 'containers101/cf-example-vote:master'
command: python app.py
ports:
- "80"
extra_hosts:
- "redis:$PERSIST_IP"
environment:
- OPTION_A=$VOTING_OPTION_A
- OPTION_B=$VOTING_OPTION_B

0 comments on commit 17ee6ec

Please sign in to comment.