-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (50 loc) · 1.26 KB
/
docker-compose.yml
File metadata and controls
51 lines (50 loc) · 1.26 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
services:
engine:
container_name: engine
build:
context: .
dockerfile: Dockerfile
ports:
- "80:80"
environment:
- CORE_PORT=${CORE_PORT:-80}
command: uvicorn main:app --host 0.0.0.0 --port ${CORE_PORT:-80} --log-config log_config.yml --log-level debug --reload
stdin_open: true
tty: true
volumes:
- ./NLTOSQL:/app/NLTOSQL
depends_on:
- mongodb
networks:
- nl_to_sql_network
env_file: .env
mongodb:
container_name: mongodb
image: mongo:latest
restart: always
ports:
- 27017:27017
volumes:
- ./initdb.d/init-mongo.sh:/docker-entrypoint-initdb.d/init-mongo.sh:ro
- ./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:
- nl_to_sql_network
postgres:
image: postgres
restart: always
container_name: my_postgres
environment:
POSTGRES_PASSWORD: 123qwe
ports:
- "5432:5432"
networks:
- nl_to_sql_network
networks:
nl_to_sql_network:
name: nl_to_sql_network
external: true