-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
45 lines (44 loc) · 1.2 KB
/
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
44
45
version: '3.1'
services:
ai_db:
image: neo4j:4.2.3
environment:
NEO4J_AUTH: neo4j/${NEO4J_INITDB_ROOT_PASSWORD}
NEO4J_ACCEPT_LICENSE_AGREEMENT: 'yes'
NEO4J_dbms_memory_heap_max__size: '${NEO4J_MAX_HEAP_SIZE}'
NEO4J_dbms_memory_heap_initial__size: '${NEO4J_INITIAL_HEAP_SIZE}'
NEO4J_dbms_security_procedures_unrestricted: 'gds.*'
NEO4JLABS_PLUGINS: '["graph-data-science"]'
container_name: ${NEO4J_CONTAINER_NAME}
ports:
- ${NEO4J_HTTP_PORT}:7474
- ${NEO4J_BOLT_PORT}:7687
db:
image: mongo:4.4.11
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD}
container_name: ${MONGO_CONTAINER_NAME}
ports:
- ${MONGO_LOCALHOST_PORT}:27017
backend:
build: .
command: python main.py
volumes:
- .:/app
ports:
- ${BACKEND_SERVER_PORT}:${BACKEND_SERVER_PORT}
depends_on:
- db
- ai_db
container_name: ${BACKEND_CONTAINER_NAME}
scheduler:
build: .
command: python scheduler.py
volumes:
- .:/app
depends_on:
- db
- ai_db
- backend
container_name: ${SCHEDULER_CONTAINER_NAME}