-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (49 loc) · 1.36 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
version: "3.9"
services:
elastic:
image: docker.elastic.co/elasticsearch/elasticsearch:8.5.2
container_name: ct-elastic
environment:
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- ELASTIC_PASSWORD=DrrW*t2Wr7rFuKYV!rHV
- ELASTIC_USER=elastic
- xpack.security.authc.token.enabled=false
- xpack.security.http.ssl.enabled=false
- http.cors.enabled=true
- http.cors.allow-origin=https://tauri.localhost
- http.cors.allow-headers=X-Requested-With,Content-Type,Content-Length,Authorization
ports:
- 9200:9200
healthcheck:
test: curl -u elastic:DrrW*t2Wr7rFuKYV!rHV -s -f http://elastic:9200 || exit 1
interval: 10s
timeout: 5s
retries: 50
server:
build:
context: ./server
dockerfile: ./Dockerfile
container_name: ct-server
environment:
- ELASTIC_HOST=http://elastic:9200
- ELASTIC_PASSWORD=DrrW*t2Wr7rFuKYV!rHV
- ELASTIC_USER=elastic
ports:
- "4000:4000"
depends_on:
elastic:
condition: service_healthy
web:
container_name: ct-web
build:
context: ./web
dockerfile: ./Dockerfile
environment:
- REACT_APP_SERVER_HOST=http://localhost:4000
- REACT_APP_SERVER_PORT=4000
depends_on:
elastic:
condition: service_healthy
ports:
- "3000:3000"