-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.test.yml
104 lines (102 loc) · 2.85 KB
/
docker-compose.test.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
version: "3.9"
services:
app:
build:
context: .
target: test
dockerfile: Dockerfile
environment:
- NODE_ENV=test
- PORT=3000
- DB_HOST=mongo
- DB_PORT=27017
- DB_USER=root
- DB_PASSWORD=pass
- DB_NAME=RnDAO
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASSWORD=
- RABBIT_HOST=rabbitmq
- RABBIT_PORT=5672
- RABBIT_USER=root
- RABBIT_PASSWORD=pass
- NEO4J_PROTOCOL=bolt
- NEO4J_HOST=neo4j
- NEO4J_PORT=7687
- NEO4J_USER=neo4j
- NEO4J_PASSWORD=password
- NEO4J_DB=neo4j
- SENTRY_DSN=https://791ed14c7dc84377a291ba2dd60270bb@o4505110094282752.ingest.sentry.io/4505158976733184
- SENTRY_ENV=test
- DISCORD_AUTHORIZE_CALLBACK_URI=empty
- DISCORD_CONNECT_CALLBACK_URI=empty
- DISCORD_REQUEST_ACCESS_CALLBACK_URI=empty
- TWITTER_CONNECT_CALLBACK_URI=empty
- TWITTER_CLIENT_ID=empty
- TWITTER_CLIENT_SECRET=empty
- DISCORD_CLIENT_ID=empty
- DISCORD_CLIENT_SECRET=empty
- DISCORD_BOT_TOKEN=empty
- JWT_SECRET=0%55e*enmvbfm@@u7v9+amg-ju_d_safeasdf6(v*88h4$#h&o-i7ste#tv*hx
- JWT_ACCESS_EXPIRATION_MINUTES=30
- JWT_REFRESH_EXPIRATION_DAYS=30
- JWT_DISCORD_REFRESH_EXPIRATION_DAY=30
- FRONTEND_URL=empty
- NOTION_API_KEY=empty
- NOTION_DATABASE_ID=empty
- LOG_LEVEL=error
- SESSION_SECRET=0%532345*edm@@u7v9+att-sdfed_l6(v*88h4$#h&o-i7awer3tv*yy
volumes:
- ./coverage:/project/coverage
depends_on:
redis:
condition: service_healthy
mongo:
condition: service_healthy
neo4j:
condition: service_healthy
rabbitmq:
condition: service_healthy
redis:
image: "redis:7.0.12-alpine"
healthcheck:
test: ["CMD", "redis-cli","ping"]
interval: 1m30s
timeout: 10s
retries: 2
start_period: 40s
mongo:
image: "mongo:5.0.10"
environment:
- MONGO_INITDB_DATABASE=RnDAO
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=pass
healthcheck:
test: echo 'db.stats().ok' | mongosh localhost:27017/test --quiet
interval: 60s
timeout: 10s
retries: 2
start_period: 40s
rabbitmq:
image: "rabbitmq:3-management-alpine"
environment:
- RABBITMQ_DEFAULT_USER=root
- RABBITMQ_DEFAULT_PASS=pass
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 30s
timeout: 30s
retries: 2
start_period: 40s
neo4j:
image: "neo4j:5.9.0"
environment:
- NEO4J_AUTH=neo4j/password
- NEO4J_PLUGINS=["apoc", "graph-data-science"]
- NEO4J_dbms_security_procedures_unrestricted=apoc.*,gds.*
healthcheck:
test: ["CMD" ,"wget", "http://localhost:7474"]
interval: 1m30s
timeout: 10s
retries: 2
start_period: 40s