-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
76 lines (68 loc) · 1.46 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
74
75
76
version: '3.7'
services:
flask:
image: netapp_paas
build:
context: .
dockerfile: ./Dockerfile
ports:
- 5000:5000
environment:
- CACHE_TYPE=redis
- CACHE_REDIS_HOST=redis
- CACHE_REDIS_PORT=6379
- CACHE_REDIS_DB=0
- CACHE_REDIS_URL=redis://redis:6379/0
- CACHE_DEFAULT_TIMEOUT=500
- ES_HOST_NAME=elasticsearch
depends_on:
- elasticsearch
- redis
networks:
- main
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.15.2
container_name: elasticsearch
environment:
- xpack.security.enabled=false
- discovery.type=single-node
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
networks:
- main
kibana:
container_name: kibana
image: docker.elastic.co/kibana/kibana:7.15.2
environment:
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
ports:
- 5601:5601
depends_on:
- elasticsearch
networks:
- main
redis:
image: redis
container_name: redis
ports:
- 6379:6379
networks:
- main
volumes:
elasticsearch-data:
driver: local
networks:
main:
driver: bridge