Skip to content
This repository has been archived by the owner on Jan 22, 2020. It is now read-only.

compose file that worked for me on step 5 #1

Open
banjot opened this issue Nov 15, 2015 · 4 comments
Open

compose file that worked for me on step 5 #1

banjot opened this issue Nov 15, 2015 · 4 comments

Comments

@banjot
Copy link

banjot commented Nov 15, 2015

voting-app:
 image: dockercond2/dockercon-voting-app
 links:
    - redis:voteapps_redis_1
 ports:
    - "5000:80"

redis:  
 image: redis
 ports: ["6379"]

worker: 
 image: dockercond2/dockercon-worker
 links: 
    - redis:voteapps_redis_1 
    - db:voteapps_db_1
db:
 image: postgres:9.4

result-app:
 image: dockercond2/dockercon-result-app
 links:
    - db:voteapps_db_1
 ports:
    - "5001:80"
@banjot
Copy link
Author

banjot commented Nov 16, 2015

i used the GH markdown to format the above so it's easier to format.

if you type "```yml" as the beginning of your code block, it seems to format well.

@lmesz
Copy link

lmesz commented Dec 9, 2015

Hello,

Have you tried it with multihost network ?
I tried a whole day and can't make it work.

@lmesz
Copy link

lmesz commented Dec 10, 2015

At least I could make it work with the following docker-compose.yml:
voting-app:
image: dockercond2/dockercon-voting-app
ports:
- "5000:80"

redis:
image: redis
ports: ["6379"]

worker:
image: dockercond2/dockercon-worker
db:
image: postgres:9.4

result-app:
image: dockercond2/dockercon-result-app
ports:
- "5001:80"

My purpose was to test UCP with multi-network host.
So it is important to mention that the directory in which the docker-compose.yml file in must be called "voteapps", because of some hardwired parameters in the apps.

And after that the command is: "docker-compose --x-networking --x-network-driver=overlay up -d"

Obciously in this case the docker nodes must use a kv backend. I used etcd.

Btw. Thanks for the config and the whole docs. It is very cool for testing ucp in action

@vsaraswat
Copy link

This only worked for me with @banjot 's compose file, and required putting the compose file in a folder called "voteapps" as @lmesz indicated. We should probably note this in the labs documentation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants