-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.infra.yml
48 lines (44 loc) · 1.3 KB
/
docker-compose.infra.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
version: '3.4'
# Infrastructure that is shared between ALL services and ALL environments
networks:
typingrealm-infra-net:
services:
typingrealm-infra-elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.16.3
container_name: typingrealm-infra-elasticsearch
networks:
- typingrealm-infra-net
ports:
- 9200:9200
volumes:
- ./infrastructure-data/infra/elasticsearch:/usr/share/elasticsearch/data
restart: unless-stopped
mem_limit: 2g
mem_reservation: 1.5g
environment:
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- xpack.security.enabled=true
- xpack.security.audit.enabled=true
- discovery.type=single-node
- bootstrap.memory_lock=true
env_file:
- deployment/.env.infra.elastic
ulimits:
memlock:
soft: -1
hard: -1
typingrealm-infra-kibana:
image: docker.elastic.co/kibana/kibana:7.16.3
container_name: typingrealm-infra-kibana
networks:
- typingrealm-infra-net
ports:
- 5601:5601
restart: unless-stopped
mem_limit: 2g
mem_reservation: 1.5g
environment:
ELASTICSEARCH_URL: http://typingrealm-infra-elasticsearch:9200
ELASTICSEARCH_HOSTS: '["http://typingrealm-infra-elasticsearch:9200"]'
env_file:
- deployment/.env.infra.elastic