-
Notifications
You must be signed in to change notification settings - Fork 47
/
docker-compose.yml
54 lines (52 loc) · 1.06 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
version: '3.1'
services:
web:
image: fxdgear/es-django-example:latest
build: .
ports:
- 80:80
volumes:
- .:/code
command: python manage.py runserver 0.0.0.0:80
environment:
- ALLOWED_HOSTS=localhost,127.0.0.1
- ES_INDEX=stack
- DEBUG=True
- ES_USE_SSL=False
- ES_HOST=elasticsearch
deploy:
mode: 'replicated'
replicas: 1
secrets:
- elastic_cloud_host
networks:
- esnet
elasticsearch:
image: 'fxdgear/elasticsearch:5.4'
environment:
- node.max_local_storage_nodes=1
- ES_HOST=http://localhost:9200
volumes:
- esdata:/usr/share/elasticsearch/data
networks:
- esnet
ports:
- "9200:9200"
deploy:
mode: 'replicated'
replicas: 1
resources:
limits:
memory: 1g
ulimits:
memlock:
soft: -1
hard: -1
networks:
esnet:
secrets: # top level secrets block
elastic_cloud_host:
file: secrets/elastic_dev_host.txt
volumes:
esdata:
driver: local