-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
97 lines (91 loc) · 1.92 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
version: '3.1'
services:
test:
container_name: test
image: test
build:
context: ./
dockerfile: test.dockerfile
elasticsearch:
container_name: elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:7.6.2
restart: always
environment:
- discovery.type=single-node
ports:
- 9200:9200
depends_on:
- test
logstash:
container_name: logstash
image: docker.elastic.co/logstash/logstash:7.6.2
restart: always
links:
- elasticsearch
volumes:
- ./logstash.conf:/etc/logstash/logstash.conf
command: logstash -f /etc/logstash/logstash.conf
ports:
- 12001:12201/udp
- 12002:12201/udp
- 12003:12201/udp
depends_on:
- elasticsearch
kibana:
container_name: kibana
image: docker.elastic.co/kibana/kibana:7.6.2
restart: always
ports:
- 5601:5601
depends_on:
- logstash
postgres:
container_name: postgres
image: postgres
restart: always
env_file: postgres.env
ports:
- 9876:5432
depends_on:
- kibana
logging:
driver: gelf
options:
gelf-address: udp://host.docker.internal:12001
tag: postgres
server:
container_name: server
image: server
restart: always
build:
context: ./
dockerfile: Dockerfile
ports:
- 4444:4000
depends_on:
- postgres
logging:
driver: gelf
options:
gelf-address: udp://host.docker.internal:12002
tag: server
nginx:
container_name: nginx
image: nginx
restart: always
environment:
- CONFIG_VAR=sample
build:
context: ./
dockerfile: nginx.dockerfile
ports:
- 6174:80
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
depends_on:
- server
logging:
driver: gelf
options:
gelf-address: udp://host.docker.internal:12003
tag: nginx