-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
103 lines (97 loc) · 2.26 KB
/
docker-compose.dev.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
x-app-common: &app-common
build:
context: .
dockerfile: Dockerfile
target: development
restart: always
env_file:
- .env
volumes:
- .:/usr/src/app
- ./node_modules:/usr/src/app/node_modules
depends_on:
redis:
condition: service_healthy
rabbitmq:
condition: service_healthy
neo4j:
condition: service_healthy
mongodb:
condition: service_healthy
services:
redis:
image: redis:7.0.11
restart: unless-stopped
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
interval: 10s
timeout: 10s
retries: 2
start_period: 10s
ports:
- 6379:6379
rabbitmq:
image: rabbitmq:management-alpine
ports:
- 15672:15672
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 10s
timeout: 10s
retries: 2
start_period: 10s
mongodb:
container_name: mongodb
image: mongo:7.0.5
restart: unless-stopped
ports:
- 27017:27017
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=pass
volumes:
- mongo_data:/data/db
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
interval: 1m30s
timeout: 10s
retries: 2
start_period: 30s
neo4j:
image: neo4j:5.9.0
restart: unless-stopped
environment:
- NEO4J_server.memory.heap.initial_size=1G
- NEO4J_server.memory.heap.max_size=2G
- NEO4J_PLUGINS=["apoc", "graph-data-science"]
- NEO4J_AUTH=neo4j/password
- NEO4J_dbms_security_procedures_unrestricted=apoc.*,gds.*
- NEO4J_apoc.export.file.enabled=true
- apoc.export.file.enabled=true
volumes:
- neo4j_data:/data
- neo4j_backups:/backups
healthcheck:
test: [ "CMD", "wget", "http://localhost:7474" ]
interval: 10s
timeout: 10s
retries: 5
start_period: 10s
ports:
- 7687:7687
- 7474:7474
extractor:
<<: [ *app-common ]
command: yarn run start:dev extractor
ports:
- 3000:3000
graph:
<<: [ *app-common ]
command: yarn run start:dev graph
mongo:
<<: [ *app-common ]
command: yarn run start:dev mongo
volumes:
neo4j_data:
neo4j_backups:
mongo_data: