a8daa2d956
The `--debug` option is deprecated and caused the result service to not start: result_1 | [nodemon] 1.14.7 result_1 | [nodemon] to restart at any time, enter `rs` result_1 | [nodemon] watching: *.* result_1 | [nodemon] starting `node --debug server.js` result_1 | (node:20) [DEP0062] DeprecationWarning: `node --debug` and `node --debug-brk` are invalid. Please use `node --inspect` or `node --inspect-brk` instead. result_1 | [nodemon] app crashed - waiting for file changes before starting... This patch removes the `--debug` option, as it's not needed, and no longer present in the other example stacks. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
55 lines
808 B
YAML
55 lines
808 B
YAML
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 server.js
|
|
volumes:
|
|
- ./result:/app
|
|
ports:
|
|
- "5001:80"
|
|
- "5858:5858"
|
|
networks:
|
|
- front-tier
|
|
- back-tier
|
|
|
|
worker:
|
|
build:
|
|
context: ./worker
|
|
dockerfile: Dockerfile.j
|
|
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:
|