mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-19 07:18:06 +02:00
Adopt Compose v2 (#240)
* Adopt Compose v2 Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
bc95525543
commit
667bd9facb
79 changed files with 237 additions and 237 deletions
22
nginx-flask-mongo/compose.yaml
Normal file
22
nginx-flask-mongo/compose.yaml
Normal file
|
@ -0,0 +1,22 @@
|
|||
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:
|
||||
- 80:80
|
||||
depends_on:
|
||||
- backend
|
||||
backend:
|
||||
build: flask
|
||||
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