-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (48 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
53 lines (48 loc) · 1.02 KB
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
44
45
46
47
48
49
50
51
52
53
version: "3.8"
services:
mongo:
image: mongo:6
container_name: mongodb
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
flaskapp:
build:
context: .
dockerfile: Dockerfile
container_name: flaskapp
ports:
- "5000:5000"
depends_on:
- mongo
streamlit-frontend:
build:
context: .
dockerfile: frontend/Dockerfile
container_name: streamlit-frontend
ports:
- "8501:8501"
volumes:
- .:/app
depends_on:
- flaskapp
env_file:
- .env
environment:
- PYTHONUNBUFFERED=1
mongo-express:
image: mongo-express
container_name: mongo-express
ports:
- "8081:8081"
depends_on:
- mongo
environment:
- ME_CONFIG_MONGODB_SERVER=mongo
- ME_CONFIG_MONGODB_PORT=27017
- ME_CONFIG_BASICAUTH_USERNAME=admin
- ME_CONFIG_BASICAUTH_PASSWORD=admin
- ME_CONFIG_MONGODB_ENABLE_ADMIN=true
volumes:
mongodb_data: