-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
77 lines (69 loc) · 1.64 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
version: '3.5'
networks:
elk:
main:
name: itu-minitwit-network
volumes:
elk_elasticsearch_data:
services:
minitwitserver:
build:
context: .
dockerfile: docker/minitwit/Dockerfile
image: ${ELK_USER}/minitwitserver
container_name: minitwit
ports:
- "5000:5000"
networks:
- main
minitwitclient:
build:
context: .
dockerfile: docker/minitwit_client/Dockerfile
image: ${ELK_USER}/minitwitclient
networks:
- main
depends_on:
- minitwitserver
elasticsearch:
image: "docker.elastic.co/elasticsearch/elasticsearch:7.17.1"
environment:
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
- "discovery.type=single-node"
volumes:
- elk_elasticsearch_data:/usr/share/elasticsearch/data
networks:
- elk
kibana:
image: "docker.elastic.co/kibana/kibana:7.17.1"
environment:
elasticsearch.hosts: '["http://elasticsearch:9200"]'
networks:
- elk
filebeat:
image: "docker.elastic.co/beats/filebeat:7.17.1"
environment:
- "ELK_USER=${ELK_USER}"
user: root
volumes:
- ${ELK_DIR}/filebeat.yml:/usr/share/filebeat/filebeat.yml:ro
- /var/lib/docker:/var/lib/docker:ro
- /var/run/docker.sock:/var/run/docker.sock
networks:
- elk
nginx:
image: nginx
ports:
- 9200:9200
- 5601:5601
- 8881:8881
- 8882:8882
networks:
- elk
volumes:
- type: bind
source: ${ELK_DIR}/nginx.conf
target: /etc/nginx/nginx.conf
- type: bind
source: ${ELK_DIR}/.htpasswd
target: /etc/nginx/.htpasswd