mirror of
https://github.com/dockersamples/example-voting-app.git
synced 2026-07-11 01:19:17 +00:00
Move everything into the root directory
The separate vote-apps directory was because networking didn't used to support aliases to remove the project name. Signed-off-by: Ben Firshman <ben@firshman.co.uk>
This commit is contained in:
36
docker-compose.yml
Normal file
36
docker-compose.yml
Normal file
@@ -0,0 +1,36 @@
|
||||
version: "2"
|
||||
services:
|
||||
voting-app:
|
||||
build: ./voting-app/.
|
||||
volumes:
|
||||
- ./voting-app:/app
|
||||
ports:
|
||||
- "5000:80"
|
||||
links:
|
||||
- redis
|
||||
|
||||
redis:
|
||||
image: redis
|
||||
ports: ["6379"]
|
||||
|
||||
worker:
|
||||
build: ./worker
|
||||
links:
|
||||
- db
|
||||
- redis
|
||||
|
||||
db:
|
||||
image: postgres:9.4
|
||||
volumes:
|
||||
- "myvolume:/var/lib/postgresql/data"
|
||||
|
||||
result-app:
|
||||
build: ./result-app/.
|
||||
volumes:
|
||||
- ./result-app:/app
|
||||
ports:
|
||||
- "5001:80"
|
||||
links:
|
||||
- db
|
||||
volumes:
|
||||
myvolume:
|
||||
Reference in New Issue
Block a user