-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
191 lines (179 loc) · 5.72 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
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
version: "3.3"
volumes:
api_node_modules:
driver: local
ui_node_modules:
driver: local
MINIO_DATA_VOLUME:
driver: local
TUS_VOLUME:
driver: local
services:
db:
image: postgres:13-alpine
hostname: db
tty: true
environment:
TERM: "xterm-256color"
NODE_ENV: "development"
POSTGRES_DB: "nyingarn"
POSTGRES_USER: "root"
POSTGRES_PASSWORD: ""
POSTGRES_HOST_AUTH_METHOD: "trust"
PGDATA: /postgresql/data
# volumes:
# - describo_online_db_test:/postgresql
#ports:
# - 5432:5432
minio:
image: minio/minio:RELEASE.2022-10-24T18-35-07Z.hotfix.ce525fdaf
hostname: s3
restart: always
ports:
- 10000:9000
- 10001:10001
environment:
MINIO_ROOT_USER: "${MINIO_ROOT_USER}"
MINIO_ROOT_PASSWORD: "${MINIO_ROOT_PASSWORD}"
MINIO_BROWSER_REDIRECT_URL: ${MINIO_BROWSER_REDIRECT_URL}
entrypoint: bash -c '/opt/bin/minio server /data --console-address ":10001"'
volumes:
- MINIO_DATA_VOLUME:/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:10001/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
rabbit:
image: rabbitmq:3-management
hostname: rabbit
restart: always
ports:
- 5672:5672
- 15672:15672
rabbit-worker1:
image: node:18-bullseye
hostname: worker1
restart: always
working_dir: /srv/tasks
environment:
TERM: "xterm-256color"
NODE_ENV: "development"
LOG_LEVEL: "debug"
DB_HOST: "db"
DB_PORT: "5432"
DB_USER: "root"
DB_PASSWORD: ""
DB_DATABASE: "nyingarn"
POST_FINISH: "http://api:8080/process/post-finish"
volumes:
- api_node_modules:/srv/api/node_modules:delegated
- ./tasks:/srv/tasks:delegated
- ./saxon-test:/srv/saxon-test:delegated
- ./api:/srv/api:delegated
- ./.git:/srv/tasks/.git:delegated
- ./.git:/srv/api/.git:delegated
- ./scripts/wait-for-it.sh:/wait-for-it.sh
- ./configuration:/srv/configuration
command: ["/wait-for-it.sh", "rabbit:15672", "--", "npm", "run", "develop"]
api:
image: node:18-bullseye
hostname: api
tty: true
environment:
TERM: "xterm-256color"
NODE_ENV: "development"
LOG_LEVEL: "debug"
DB_HOST: "db"
DB_PORT: "5432"
DB_USER: "root"
DB_PASSWORD: ""
DB_DATABASE: "nyingarn"
volumes:
- api_node_modules:/srv/api/node_modules:delegated
- ./api:/srv/api:delegated
- ./profiles:/srv/profiles:delegated
- ./.git:/srv/api/.git:delegated
- ./scripts/wait-for-it.sh:/wait-for-it.sh
- ./configuration:/srv/configuration
working_dir: /srv/api
command: ["/wait-for-it.sh", "db:5432", "--", "npm", "run", "develop"]
ports:
- 8080:8080
ui:
image: node:18-bullseye
hostname: ui
tty: true
environment:
TERM: "xterm-256color"
NODE_ENV: "development"
volumes:
# - ui_node_modules:/srv/ui/node_modules:delegated
- ./ui:/srv/ui:delegated
- .git:/srv/ui/.git:delegated
working_dir: /srv/ui
command: ["npm", "run", "develop"]
ui-repository:
image: node:18-bullseye
hostname: ui-repository
tty: true
environment:
TERM: "xterm-256color"
NODE_ENV: "development"
volumes:
# - ui_node_modules:/srv/ui/node_modules:delegated
- ./ui-repository:/srv/ui:delegated
- .git:/srv/ui/.git:delegated
working_dir: /srv/ui
command: ["npm", "run", "develop"]
elastic:
image: elasticsearch:8.16.0
hostname: elastic
environment:
- discovery.type=single-node
- ES_JAVA_OPTS=-Xms750m -Xmx750m
- xpack.security.enabled=false
- node.name=search
volumes:
- ./elasticsearch-plugins:/plugins
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
ports:
- 9200:9200
command: >
/bin/sh -c "
./bin/elasticsearch-plugin remove nyingarn-phonetic-search;
./bin/elasticsearch-plugin install https://github.com/r-tae/nyingarn-phonetic-search/releases/download/v1.0.0/nyingarn-phonetic-search-1.0-SNAPSHOT.zip;
/usr/local/bin/docker-entrypoint.sh"
edge:
image: nginx:latest
hostname: edge
tty: true
environment:
TERM: "xterm-256color"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- ./scripts/wait-for-it.sh:/wait-for-it.sh
command: ["/wait-for-it.sh", "api:8080", "-t", "10", "--", "nginx", "-g", "daemon off;"]
ports:
- 9000:9000
- 9001:9001
xml-processor:
image: tomcat:9.0.76-jdk21-openjdk-slim
hostname: xml
tty: true
environment:
TERM: "xterm-256color"
volumes:
- ./xml:/srv/xml
- ./xml/tomcat-config:/usr/local/tomcat/conf/Catalina/localhost/
ports:
- "8888:8080"
restart: unless-stopped