-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (37 loc) · 784 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (37 loc) · 784 Bytes
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
version: "3.9"
services:
api:
container_name: api
restart: always
build:
context: api
ports:
- "8000:8000"
volumes:
- ./api/src:/app
- ./conf:/conf
front:
container_name: front
restart: always
build:
context: front
ports:
- "80:80"
volumes:
- ./front/src:/app
- ./conf:/conf
- ./.streamlit:/root/.streamlit
mongodb:
container_name: db
restart: always
image: mongo:latest
ports:
- 27017:27017
volumes:
- ./data:/data/db
- ./mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: admin
MONGO_INITDB_DATABASE: diversify
command: mongod --quiet