-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (42 loc) · 1006 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
version: '2'
services:
flask-api:
build:
context: ./flask-backend/
dockerfile: Dockerfile
command: python -u app.py
ports:
- "5000:5000"
volumes:
- ./flask-backend:/simpleFlaskApp
depends_on:
- mongo
user: ${CURRENT_UID}
image: flask_backend
container_name: flask_simple_app
network_mode: "host"
mongo:
image: mongo:4.0.10
# command: chown -R ${CURRENT_UID} /data/db
ports:
- "27017:27017"
volumes:
- ./mongoData:/data/db
- ./dump:/dump
container_name: mongo_simple_app
# depends_on:
# - fix-mongodb-permissions
# pixel_link:
# build:
# context: ./flask-backend/docker_models/pixel_link
# dockerfile: Dockerfile
# container_name: pixel_link_container
# depends_on:
# - mongo
# aster:
# build:
# context: ./flask-backend/docker_models/aster
# dockerfile: Dockerfile
# container_name: aster_container
# depends_on:
# - mongo