Skip to content

Convert app to use Compose file 2 #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 4, 2016

Conversation

bfirsh
Copy link
Contributor

@bfirsh bfirsh commented Jan 25, 2016

If looks good I will merge on release of Compose 1.6.

/cc @aanand @mgoelzer

@aanand
Copy link
Contributor

aanand commented Jan 25, 2016

Nice!

The next Compose RC will refuse to run this because the myvolume volume isn't explicitly declared. Add this to the file:

volumes:
  myvolume:

@bfirsh
Copy link
Contributor Author

bfirsh commented Jan 29, 2016

@aanand thanks! how come that is required?

@bfirsh bfirsh force-pushed the compose-file-2 branch 2 times, most recently from 0216a95 to a51fd76 Compare January 29, 2016 21:44
@aanand
Copy link
Contributor

aanand commented Feb 2, 2016

For one thing, mistyped volume names would otherwise result in the silent creation of a volume with the wrong name, which would lead to some pretty unpleasant behaviour in apps where named volumes are shared.

@@ -0,0 +1,36 @@
version: 2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be version: "2"

the version is a string

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

The separate vote-apps directory was because networking didn't
used to support aliases to remove the project name.

Signed-off-by: Ben Firshman <[email protected]>
Signed-off-by: Dave Tucker <[email protected]>
bfirsh added a commit that referenced this pull request Feb 4, 2016
Convert app to use Compose file 2
@bfirsh bfirsh merged commit 6aa86f6 into dockersamples:master Feb 4, 2016
Olivety pushed a commit to Olivety/example-voting-app that referenced this pull request Nov 1, 2019
inikolchev pushed a commit to inikolchev/example-voting-app that referenced this pull request Mar 14, 2022
tcscr added a commit to tcscr/example-voting-app that referenced this pull request Dec 30, 2023
salaboy added a commit to marcosnils/example-voting-app that referenced this pull request Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants