-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
51 lines (48 loc) · 1.11 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
version: "3"
services:
elastic:
image: docker.elastic.co/elasticsearch/elasticsearch:${STACK_VERSION}
volumes:
- ./data/elasticsearch/data:/usr/share/elasticsearch/data
environment:
- discovery.type=single-node
- node.name=elastic
- cluster.name=${CLUSTER_NAME}
- ELASTIC_PASSWORD=${ELASTIC_PASSWORD}
- xpack.security.enabled=false
- xpack.license.self_generated.type=${LICENSE}
mem_limit: ${MEM_LIMIT}
ulimits:
memlock:
soft: -1
hard: -1
healthcheck:
test:
[
"CMD-SHELL",
"curl -s http://localhost:9200",
]
interval: 10s
timeout: 10s
retries: 120
restart: on-failure
networks:
- reconcile-backend
reconcile:
depends_on:
elastic:
condition: service_healthy
build:
context: .
dockerfile: ./Dockerfile
ports:
- ${APP_PORT_EXPOSED}:${APP_PORT}
volumes:
- .env:/app/.env
restart: on-failure
networks:
- reconcile-backend
networks:
reconcile-backend:
name: reconcile-backend
external: true