diff --git a/docker-compose.yml b/docker-compose.yml index c5460ee747..efc3e6f02f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,4 @@ -version: "3" +version: "2" services: vote: diff --git a/docker-compose.yml~ b/docker-compose.yml~ new file mode 100644 index 0000000000..c5460ee747 --- /dev/null +++ b/docker-compose.yml~ @@ -0,0 +1,52 @@ +version: "3" + +services: + vote: + build: ./vote + command: python app.py + volumes: + - ./vote:/app + ports: + - "5000:80" + networks: + - front-tier + - back-tier + + result: + build: ./result + command: nodemon --debug server.js + volumes: + - ./result:/app + ports: + - "5001:80" + - "5858:5858" + networks: + - front-tier + - back-tier + + worker: + build: ./worker + networks: + - back-tier + + redis: + image: redis:alpine + container_name: redis + ports: ["6379"] + networks: + - back-tier + + db: + image: postgres:9.4 + container_name: db + volumes: + - "db-data:/var/lib/postgresql/data" + networks: + - back-tier + +volumes: + db-data: + +networks: + front-tier: + back-tier: \ No newline at end of file