nginx-flask-mongo: add dev envs support (#268)

Signed-off-by: Milas Bowman <milas.bowman@docker.com>
This commit is contained in:
Milas Bowman authored and GitHub committed 2022-07-12 11:31:52 +02:00
1 parent 42f6713231
commit c172cd7f01
4 files changed
+72 -6

No files matched your search

+9 -2
View File
@@ -10,13 +10,20 @@ services:
- 80:80
depends_on:
- backend
backend:
build: flask
environment:
build:
context: flask
target: builder
# flask requires SIGINT to stop gracefully
# (default stop signal from Compose is SIGTERM)
stop_signal: SIGINT
environment:
- FLASK_SERVER_PORT=9091
volumes:
- ./flask:/src
depends_on:
- mongo
mongo:
image: mongo