-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
129 lines (117 loc) · 2.53 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
125
126
127
128
129
version: '3.4'
services:
postgres:
image: postgres:14.2-alpine3.15
container_name: 'postgre'
volumes:
- db_volume:/var/lib/postgresql/data
environment:
POSTGRES_DB: OrderDb
POSTGRES_USER: admin
POSTGRES_PASSWORD: sa1234
ports:
- 5432:5432
networks:
- dtnetwork
pgadmin:
image: dpage/pgadmin4
environment:
- PGADMIN_DEFAULT_EMAIL=admin@aspnetrun.com
- PGADMIN_DEFAULT_PASSWORD=admin1234
restart: always
ports:
- "5050:80"
volumes:
- pgadmin_data://root/.pgadmin
networks:
- dtnetwork
redis:
image: redis:6.2
container_name: 'redis'
ports:
- 6002:6379
networks:
- dtnetwork
redis_2:
image: redis:6.2
container_name: 'redis_2'
ports:
- 6003:6379
networks:
- dtnetwork
redis_3:
image: redis:6.2
container_name: 'redis_3'
ports:
- 6004:6379
networks:
- dtnetwork
rabbitmq:
image: rabbitmq:3-management
container_name: 'rabbitmq'
ports:
- 5003:5672
- 5004:15672
volumes:
- rabbitmq_data:/var/lib/rabbitmq/
- rabbitmq_log:/var/log/rabbitmq
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5004"]
interval: 30s
timeout: 10s
retries: 5
networks:
- dtnetwork
consul:
image: hashicorp/consul:latest
command: consul agent -dev -log-level=warn -ui -client=0.0.0.0
hostname: consul
container_name: consul
ports:
- 8500:8500
networks:
- dtnetwork
elasticsearch:
container_name: dt-els
image: docker.elastic.co/elasticsearch/elasticsearch:7.16.1
ports:
- 9200:9200
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
environment:
- xpack.monitoring.enabled=true
- xpack.watcher.enabled=false
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- discovery.type=single-node
networks:
- dtnetwork
kibana:
container_name: dt-kibana
image: docker.elastic.co/kibana/kibana:7.16.1
ports:
- 5601:5601
depends_on:
- elasticsearch
environment:
- ELASTICSEARCH_URL=http://localhost:9200
networks:
- dtnetwork
mongodb_es:
image: mongo:5.0
ports:
- 27017:27017
volumes:
- mongodb_data:/data/db
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=sample
networks:
dtnetwork:
driver: bridge
volumes:
db_volume:
rabbitmq_data:
rabbitmq_log:
pgadmin_data:
elasticsearch-data:
mongodb_data: