forked from Dataherald/dataherald
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
35 lines (35 loc) · 904 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
version: "3.9"
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "80:80"
command: uvicorn dataherald.app:app --host 0.0.0.0 --port 80 --log-config log_config.yml --log-level debug --reload
stdin_open: true
tty: true
volumes:
- ./dataherald:/app/dataherald
depends_on:
- mongodb
networks:
- backendnetwork
mongodb:
image: mongo:latest
restart: always
ports:
- 27017:27017
volumes:
- ./initdb.d/:/docker-entrypoint-initdb.d/
- ./dbdata/mongo_data/data:/data/db/
- ./dbdata/mongo_data/db_config:/data/configdb/
environment:
MONGO_INITDB_ROOT_USERNAME: "${MONGODB_DB_USERNAME}"
MONGO_INITDB_ROOT_PASSWORD: "${MONGODB_DB_PASSWORD}"
MONGO_INITDB_DATABASE: "${MONGODB_DB_NAME}"
networks:
- backendnetwork
networks:
backendnetwork:
external: true