-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
62 lines (62 loc) · 1.48 KB
/
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
services:
elastic:
image: docker.elastic.co/elasticsearch/elasticsearch:8.13.2
container_name: elastic
volumes:
- elastic:/usr/share/elasticsearch/data
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- xpack.security.enabled=false
mem_limit: 1073741824
ulimits:
memlock:
soft: -1
hard: -1
healthcheck:
test: curl --fail --silent localhost:9200/_cluster/health?filter_path=status | grep -q "green\|yellow"
interval: 10s
timeout: 10s
retries: 120
ingest:
build: ingest
container_name: ingest
depends_on:
elastic:
condition: service_healthy
environment:
- LOG_LEVEL=DEBUG
- ELASTIC_SERVER_URL=http://elastic:9200
volumes:
- ingest:/ingest/success
api:
build: api
container_name: api
depends_on:
ingest:
condition: service_completed_successfully
environment:
- ELASTIC_SERVER_URL=http://elastic:9200
volumes:
- api:/api/data
frontend:
build: frontend
container_name: frontend
depends_on:
ingest:
condition: service_completed_successfully
reverse-proxy:
image: nginx:1.25.5-alpine
container_name: reverse-proxy
ports:
- "8080:80"
restart: always
depends_on:
ingest:
condition: service_completed_successfully
volumes:
- ./reverse-proxy/default.conf:/etc/nginx/conf.d/default.conf
volumes:
elastic:
ingest:
api: