-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
104 lines (98 loc) · 2.37 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
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
104
x-telegram-common: &telegram-common
build:
context: .
dockerfile: Dockerfile
target: development
restart: unless-stopped
env_file:
- ./.env
depends_on:
rabbitmq:
condition: service_healthy
neo4j:
condition: service_healthy
mongodb:
condition: service_healthy
volumes:
- ./:/usr/src/app/
services:
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
rabbitmq:
container_name: rabbitmq
image: rabbitmq:3.12.12-management
restart: unless-stopped
ports:
- 5672:5672
- 15672:15672
environment:
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 1m30s
timeout: 10s
retries: 2
start_period: 30s
neo4j:
container_name: neo4j
image: neo4j:5.9.0
restart: unless-stopped
ports:
- 7474:7474
- 7687:7687
volumes:
- neo4j_data:/data
- neo4j_import:/import
- neo4j_plugins:/plugins
environment:
- NEO4J_PLUGINS=["apoc", "graph-data-science"]
- NEO4J_dbms_security_procedures_unrestricted=apoc.*,gds.*
- NEO4J_AUTH=neo4j/password
healthcheck:
test: [ "CMD", "wget", "http://localhost:7474" ]
interval: 1m30s
timeout: 10s
retries: 2
start_period: 40s
telegram-bot:
<<: [ *telegram-common ]
container_name: telegram-bot
command: npm run start:dev bot
telegram-events:
<<: [ *telegram-common ]
container_name: telegram-events
command: npm run start event-store
telegram-graph:
<<: [ *telegram-common ]
container_name: telegram-graph
command: npm run start graph-store
telegram-question:
<<: [ *telegram-common ]
container_name: telegram-question
command: npm run start:dev question
question-service-ext:
image: ghcr.io/togethercrew/question-service:main
platform: linux/x86_64
ports:
- 80:80
volumes:
mongo_data:
neo4j_data:
neo4j_import:
neo4j_plugins: