-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-testing.yaml
197 lines (195 loc) · 11.8 KB
/
docker-compose-testing.yaml
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
name: gropius-testing
services:
neo4j:
image: ghcr.io/graphglue/neo4j:main
restart: unless-stopped
ports:
- 7474:7474
- 7687:7687
volumes:
- neo4j-conf:/conf
- neo4j-data:/data
- neo4j-import:/import
- neo4j-logs:/logs
environment:
- NEO4J_server_memory_pagecache_size=1G
- NEO4J_server_memory_heap_initial__size=1G
- NEO4J_server_memory_heap_max__size=1G
- NEO4J_AUTH=none
- NEO4J_dbms_directories_run=/run
healthcheck:
test: wget -qO - http://localhost:7474 || exit 1
interval: 1s
timeout: 10s
retries: 20
start_period: 3s
api-public:
restart: unless-stopped
build:
context: ./gropius-backend
args:
module: api-public
depends_on:
neo4j:
condition: service_healthy
ports:
- 8080:8080
environment:
- SPRING_NEO4J_URI=bolt://neo4j:7687
- GROPIUS_API_PUBLIC_JWT_PUBLIC_KEY=LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUFzYk9TSnJWM3VCN1IxcE4xYUQvOQpzc3pIVzV2RGRHMHBPS2JxdWlaclFCRmRrbTZuYUQzU1F2TWVnWHQ0ZGF0YnVzRHZiWDdJRS9DdS9uUEhXN2Z3Cnc5TGRKQ0Z5M0tSQ0NGQUJTd1QwUkxHaUNUejBCRkhCZFlzWjF2K2E1NU9lb3J0Q2NBRkRJbFdCQzJzL2FtaWYKQ242bHhkS3JQWHROSlBtTmdhVWI1S240K1l6OVJnTmkvWk5yeUZtNlRrd1FnMTNhNXJNM0NPYkt1WGdPdDdDYgpDWUpYYnJTL1k3VXRwUmwrd1lpQ012SnJneGgrTXJWKzdOSW9UZ2wvZm9JSU9PZUR5dXJhS09mYW1peDBHbWNyCi9tK2dGTGdtUVVMbmQ3M1hncmdGZ1NNbUU3UVhlczlnQkx5bE55dUxUUVVBb1RTZW1mQUJJemp4MWgxZC9tNVoKUXdJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tCg==
- LOGGING_LEVEL_IO_GITHUB_GRAPHGLUE=WARN
- GRAPHGLUE_CORE_USE_NEO4J_PLUGIN=true
healthcheck:
test: wget -qO - http://localhost:8080/health || exit 1
interval: 1s
timeout: 10s
retries: 20
start_period: 3s
api-internal:
restart: unless-stopped
build:
context: ./gropius-backend
args:
module: api-internal
depends_on:
neo4j:
condition: service_healthy
ports:
- 8081:8080
environment:
- SPRING_NEO4J_URI=bolt://neo4j:7687
- GROPIUS_API_INTERNAL_API_TOKEN=TodoInternalApiToken
- LOGGING_LEVEL_IO_GITHUB_GRAPHGLUE=WARN
- GROPIUS_CORE_CREATE_INDICES_ON_STARTUP=false
- GRAPHGLUE_CORE_USE_NEO4J_PLUGIN=true
healthcheck:
test: wget -qO - http://localhost:8080/health || exit 1
interval: 1s
timeout: 10s
retries: 20
start_period: 3s
postgres:
image: postgres:14
restart: unless-stopped
ports:
- 5432:5432
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=gropius
login-service:
restart: unless-stopped
build:
context: ./gropius-login-service
command: /bin/sh -c "npx typeorm migration:run -d dist/migrationDataSource.config.js && sleep 10 && node dist/main.js"
depends_on:
api-internal:
condition: service_healthy
postgres:
condition: service_started
ports:
- 3000:3000
environment:
- GROPIUS_INTERNAL_BACKEND_ENDPOINT=http://api-internal:8080/graphql
- GROPIUS_INTERNAL_BACKEND_TOKEN=TodoInternalApiToken
- GROPIUS_ACCESS_TOKEN_EXPIRATION_TIME_MS=600000
- GROPIUS_LOGIN_DATABASE_HOST=postgres
- GROPIUS_LOGIN_DATABASE_PASSWORD=postgres
- GROPIUS_LOGIN_SYNC_API_SECRET=TODO_loginSecret
- GROPIUS_DEFAULT_STRATEGY_INSTANCE_TYPE=userpass
- GROPIUS_DEFAULT_STRATEGY_INSTANCE_CONFIG={}
- GROPIUS_DEFAULT_STRATEGY_INSTANCE_NAME=userpass-local
- GROPIUS_DEFAULT_USER_USERNAME=admin
- GROPIUS_DEFAULT_USER_DISPLAYNAME=System-Admin
- 'GROPIUS_DEFAULT_USER_POST_DATA={"password": "admin"}'
- GROPIUS_DEFAULT_USER_STRATEGY_INSTANCE_NAME=userpass-local
- GROPIUS_ENDPOINT=http://localhost:4200
- GROPIUS_OAUTH_PUBLIC_KEY=LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUFzYk9TSnJWM3VCN1IxcE4xYUQvOQpzc3pIVzV2RGRHMHBPS2JxdWlaclFCRmRrbTZuYUQzU1F2TWVnWHQ0ZGF0YnVzRHZiWDdJRS9DdS9uUEhXN2Z3Cnc5TGRKQ0Z5M0tSQ0NGQUJTd1QwUkxHaUNUejBCRkhCZFlzWjF2K2E1NU9lb3J0Q2NBRkRJbFdCQzJzL2FtaWYKQ242bHhkS3JQWHROSlBtTmdhVWI1S240K1l6OVJnTmkvWk5yeUZtNlRrd1FnMTNhNXJNM0NPYkt1WGdPdDdD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ri84b243ajZlRC90N1JYc3RpTzZFQjhtZXB6WlhsZm54Cm1QMkpoNEpGbWZuZjdCVWlWR2lEaEp0L1g4UzYrNTNkekY1eEVCYzBLWmxhRlVoM2g1czJPVGw5VXUzVXBSSTYKVk41dm05NnBWbEZpRDFwamFNOXJJZz09Ci0tLS0tRU5EIFBSSVZBVEUgS0VZLS0tLS0K
frontend:
restart: unless-stopped
build:
context: gropius-frontend
ports:
- "4200:80"
depends_on:
api-public:
condition: service_healthy
login-service:
condition: service_started
environment:
- LOGIN_OAUTH_CLIENT_ID=8ee1287d-71ff-4c85-becd-cba829f390a0
- API_PUBLIC_ENDPOINT=http://api-public:8080/graphql
- LOGIN_SERVICE_ENDPOINT=http://login-service:3000
mongo:
image: mongo
restart: unless-stopped
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: root
ports:
- 27017:27017
volumes:
- mongo-data:/data/db
- mongo-config:/data/configdb
sync-github:
build:
context: ./gropius-backend
args:
module: sync-github
depends_on:
- neo4j
- mongo
- login-service
environment:
- SPRING_NEO4J_URI=bolt://neo4j:7687
- SPRING_DATA_MONGODB_HOST=mongo
- SPRING_DATA_MONGODB_PORT=27017
- SPRING_DATA_MONGODB_DATABASE=gropius
- SPRING_DATA_MONGODB_USERNAME=root
- SPRING_DATA_MONGODB_PASSWORD=root
- GROPIUS_SYNC_LOGIN_SERVICE_BASE=http://login-service:3000/
- GROPIUS_SYNC_API_SECRET=TODO_loginSecret
healthcheck:
test: wget -qO - http://localhost:8080/health || exit 1
interval: 1s
timeout: 10s
retries: 20
start_period: 3s
sync-jira:
build:
context: ./gropius-backend
args:
module: sync-jira
depends_on:
- neo4j
- mongo
- login-service
environment:
- SPRING_NEO4J_URI=bolt://neo4j:7687
- SPRING_DATA_MONGODB_HOST=mongo
- SPRING_DATA_MONGODB_PORT=27017
- SPRING_DATA_MONGODB_DATABASE=gropius
- SPRING_DATA_MONGODB_USERNAME=root
- SPRING_DATA_MONGODB_PASSWORD=root
- GROPIUS_SYNC_LOGIN_SERVICE_BASE=http://login-service:3000/
- GROPIUS_SYNC_API_SECRET=TODO_loginSecret
healthcheck:
test: wget -qO - http://localhost:8080/health || exit 1
interval: 1s
timeout: 10s
retries: 20
start_period: 3s
volumes:
neo4j-conf:
neo4j-data:
neo4j-import:
neo4j-logs:
neo4j-plugins:
postgres-data:
mongo-data:
mongo-config: