2020-03-06 21:25:16 +03:00
|
|
|
version: "3.7"
|
2020-02-13 16:14:36 +03:00
|
|
|
services:
|
|
|
|
web:
|
|
|
|
image: nginx
|
|
|
|
volumes:
|
|
|
|
- ./nginx/nginx.conf:/tmp/nginx.conf
|
|
|
|
environment:
|
|
|
|
- FLASK_SERVER_ADDR=backend:9091
|
|
|
|
command: /bin/bash -c "envsubst < /tmp/nginx.conf > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
|
|
|
|
ports:
|
2020-03-24 02:36:46 +03:00
|
|
|
- 80:80
|
2020-02-13 16:14:36 +03:00
|
|
|
depends_on:
|
2020-03-24 02:36:46 +03:00
|
|
|
- backend
|
2020-02-13 16:14:36 +03:00
|
|
|
backend:
|
|
|
|
build: flask
|
|
|
|
environment:
|
2020-03-24 02:36:46 +03:00
|
|
|
- FLASK_SERVER_PORT=9091
|
2020-02-13 16:14:36 +03:00
|
|
|
volumes:
|
2020-03-24 02:36:46 +03:00
|
|
|
- ./flask:/src
|
2020-02-13 16:14:36 +03:00
|
|
|
depends_on:
|
|
|
|
- mongo
|
|
|
|
mongo:
|
|
|
|
image: mongo
|