-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
61 lines (61 loc) · 1.45 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
version: '2.1'
services:
webapp:
build:
context: .
dockerfile: Dockerfile
depends_on:
elasticsearch:
condition: service_healthy
healthcheck:
test: wget --spider --quiet --tries=1 http://localhost:8080/actuator/info || exit 1
image: ${IMAGE}:${VERSION}
logging:
driver: "local"
mem_limit: 1500m
networks:
- esnet
ports:
- 8080:8080
restart: unless-stopped
chrome:
image: selenium/standalone-chrome:4.9.1-20230508
mem_limit: 2g
networks:
- esnet
ports:
- 4444:4444
shm_size: 2gb
elasticsearch:
environment:
- cluster.name=policeticker
- bootstrap.memory_lock=true
- ES_JAVA_OPTS=-Xms1g -Xmx1g
- node.name=policeticker-1
- network.host=0.0.0.0
- discovery.type=single-node
- discovery.zen.minimum_master_nodes=1
- xpack.security.enabled=false
- xpack.monitoring.enabled=false
- xpack.ml.enabled=false
- xpack.graph.enabled=false
- xpack.watcher.enabled=false
healthcheck:
test: wget --spider --quiet --tries=1 http://localhost:9200 || exit 1
image: docker.elastic.co/elasticsearch/elasticsearch:${ES_VERSION}
logging:
driver: "json-file"
options:
max-size: "100m"
mem_limit: 2g
networks:
- esnet
ports:
- 9200:9200
restart: unless-stopped
ulimits:
memlock:
soft: -1
hard: -1
networks:
esnet: