-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
68 lines (63 loc) · 1.66 KB
/
docker-compose.yaml
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
services:
############################# ASP.NET Core Web API ##############################
domestic-flight-api:
build:
context: .
dockerfile: src/Alibaba.DomesticFlight.API/Dockerfile
container_name: DomesticFlightApiContainer
environment:
- ASPNETCORE_ENVIRONMENT=Staging
ports:
- "5010:80"
restart: always
networks:
- Alibaba
#depends_on:
# - fluentd-service
logging:
driver: fluentd
options:
fluentd-address: localhost:24224
fluentd-async: "true"
############################# Fluentd ##############################
fluentd-service:
build:
context: .
dockerfile: Fluentd/Fluentd.Dockerfile
volumes:
- ./Fluentd/conf:/fluentd/etc
ports:
- "24224:24224"
- "24224:24224/udp"
networks:
- Alibaba
depends_on:
- ElasticSearchService
############################# Elastic Search ##############################
ElasticSearchService:
image: docker.elastic.co/elasticsearch/elasticsearch:7.16.0
container_name: ElasticSearchContainer
ports:
- "9200:9200"
- "9300:9300"
environment:
- xpack.security.enabled=false
- discovery.type=single-node
networks:
- Alibaba
restart: always
############################# Kibana ##############################
KibanaService:
image: docker.elastic.co/kibana/kibana:7.16.0
container_name: KibanaContainer
depends_on:
- ElasticSearchService
ports:
- "5601:5601"
environment:
- ELASTICSEARCH_HOSTS=http://ElasticSearchContainer:9200/
networks:
- Alibaba
restart: always
networks:
Alibaba: