mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-19 07:18:06 +02:00
nginx-flask-mongo: add dev envs support (#268)
Signed-off-by: Milas Bowman <milas.bowman@docker.com>
This commit is contained in:
parent
42f6713231
commit
c172cd7f01
4 changed files with 72 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue