-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
78 lines (69 loc) · 1.68 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
77
78
version: '3.2'
services:
# api server
django:
build:
context: ./Django
ports:
- 8000:8000
container_name: django
restart: always
networks:
- app_tier
volumes:
- ./Django:/django/
command: gunicorn main.wsgi:application --bind 0.0.0.0:8000
# web server
nginx:
image: nginx:latest
ports:
- 80:3000
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
depends_on:
- django
networks:
- app_tier
restart: on-failure
#elasticsearch
elasticsearch:
build:
context: ./ELK/elasticsearch
ports:
- 9200:9200
- 9300:9300
networks:
- app_tier
environment:
ES_JAVA_OPTS: "-Xmx256m -Xms256m"
ELASTIC_PASSWORD: "123456"
discovery.type: single-node
healthcheck:
test: "curl http://elasticsearch:9200"
interval: "1s"
timeout: "3s"
retries: 60
ulimits:
memlock:
soft: -1
hard: -1
logging:
driver: "json-file"
options:
max-size: "10k"
max-file: "10"
#kibana
kibana:
build:
context: ./ELK/kibana/
ports:
- 5601:5601
volumes:
- ./ELK/kibana/config/kibana.yml:/usr/share/kibana/config/kibana.yml
networks:
- app_tier
depends_on:
- elasticsearch
networks:
app_tier:
driver: bridge