-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
124 lines (117 loc) · 3.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
version: '3.4'
networks:
mediatrexample:
driver: bridge
services:
pgsql_image:
image: postgres:latest
container_name: postgersql_db
restart: always
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "123456"
POSTGRES_DB: "ecommerce"
ports:
- 5432:5432
networks:
- mediatrexample
redis_image:
image: 'redis:latest'
container_name: redis_db
restart: always
environment:
- REDIS_PASSWORD=RRnFPZ93tjBHB9W62p
- REDIS_PORT=6379
ports:
- '6379:6379'
command: [ "redis-server" ]
networks:
- mediatrexample
elastic_image:
image: docker.elastic.co/elasticsearch/elasticsearch:7.16.1
container_name: elk_elastic
environment:
- xpack.monitoring.enabled=true
- xpack.watcher.enabled=false
- xpack.security.enabled=true
- xpack.security.audit.enabled=true
- discovery.type=single-node
- ELASTIC_PASSWORD=DkIedPPSCb
- ES_JAVA_OPTS=-Xms512m -Xmx512m
- node.master=true
- node.data=true
- http.cors.enabled=true
- http.cors.allow-origin=*
- http.cors.allow-headers=Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With
- http.cors.allow-credentials=true
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1g
networks:
- mediatrexample
ports:
- 9200:9200
- 9300:9300
kibana_image:
image: docker.elastic.co/kibana/kibana:7.16.1
container_name: elk_kibana
environment:
- "ELASTICSEARCH_URL=http://elastic_image:9200"
- "ELASTICSEARCH_HOSTS=http://elastic_image:9200"
- "ELASTICSEARCH_USERNAME=elastic"
- "ELASTICSEARCH_PASSWORD=DkIedPPSCb"
- server.name=kibana_image
- server.host="0"
- xpack.security.enabled=true
- xpack.monitoring.enabled=true
- xpack.ml.enabled=false
- xpack.graph.enabled=false
- xpack.reporting.enabled=false
- xpack.grokdebugger.enabled=false
networks:
- mediatrexample
depends_on:
- elastic_image
links:
- elastic_image
ports:
- 5601:5601
head:
image: mobz/elasticsearch-head:5
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1g
ports:
- "9100:9100"
networks:
- mediatrexample
mediatrexample.api:
image: ${DOCKER_REGISTRY-}mediatrexampleapi
container_name: mediatr_example
depends_on:
- pgsql_image
- redis_image
- elastic_image
- kibana_image
build:
context: .
dockerfile: MediatrExample.API/Dockerfile
networks:
- mediatrexample
ports:
- 5001:80
links:
- pgsql_image
- redis_image
- elastic_image
environment:
- CONNECTIONSTRINGS__NpgSQLConnection=User ID=postgres;Password=123456;Host=pgsql_image;Port=5432;Database=ecommerce
- Redis__Host=redis_image
- Redis__Port=6379
- Redis__Password=RRnFPZ93tjBHB9W62p
- Serilog__WriteTo__1__Args__nodeUris=http://elastic:DkIedPPSCb@elastic_image:9200
- SeriLogConfig__ElasticUri=http://elastic:DkIedPPSCb@elastic_image:9200