-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·73 lines (69 loc) · 1.78 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
62
63
64
65
66
67
68
69
70
71
72
73
---
version: "3"
services:
elasticsearch:
image: elk-with-icu
build:
context: .
dockerfile: ./Dockerfile.elasticsearch
container_name: elastic-sirene
volumes:
- ./.esdata:/usr/share/elasticsearch/data
networks:
- aio-elasticsearch-network
environment:
- node.name=elastic-sirene
- cluster.name=es-docker-cluster
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms8g -Xmx8g -Dlog4j2.formatMsgNoLookups=true"
- ELASTICSEARCH_PORT=9200
- xpack.security.enabled=false
#- xpack.security.enabled=true
#- ELASTIC_PASSWORD=${ELASTIC_PASSWORD}
ulimits:
memlock:
soft: -1
hard: -1
command: bash -c "/usr/local/bin/docker-entrypoint.sh"
ports:
- "127.0.0.1:9200:9200"
redis:
image: "redis:alpine"
container_name: redis
volumes:
- ./.redisdata:/data
env_file:
- .env
#environment:
#- REDIS_PASSWORD=${REDIS_PASSWORD}
#- REDIS_REPLICATION_MODE=${REDIS_REPLICATION_MODE}
networks:
- aio-elasticsearch-network
command:
# Save if 100 keys are added in every 10 seconds
- --save 10 100
# Set password
# - --requirepass ${REDIS_PASSWORD}
# Set max memory to 4Gb
- --maxmemory 4gb
# Remove less recently used(LRU) keys first
- --maxmemory-policy allkeys-lru
ports:
- "127.0.0.1:6379:6379"
http-proxy:
build:
context: ./aio
container_name: aio
env_file:
- .env
environment:
- ELASTIC_PASSWORD=False
- ELASTIC_USER=False
- ELASTIC_URL=http://elasticsearch:9200 # bridge
networks:
- aio-elasticsearch-network
ports:
- "127.0.0.1:4500:4500"
networks:
aio-elasticsearch-network:
name: aio-elasticsearch-network