-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
103 lines (96 loc) · 2.22 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
version: '3.3'
services:
web:
build: .
image: demo-api
container_name: aspnet-core-webapi
restart: always
deploy:
replicas: 1
environment:
- JWT_ISS=http://localhost:8181/api/signup
- JWT_AUD=demo.api
- JWT_EXPIRATION=1800
- MONGO_URI=mongodb://mongodb:27017/clinfy
- MYSQL_CONNECTION=Server=mysqldb;Database=dbz;User=root;Password=root;
- REDIS_URI=redis,name=Demo.Api,defaultDatabase=1
- RABBITMQ_URI=amqp://guest:guest@rabbitmq
ports:
- "8181:80"
links:
- mongodb
- mysqldb
- rabbitmq
- redis
- healthapp
depends_on:
- mongodb
- mysqldb
- rabbitmq
- redis
healthapp:
image: xabarilcoding/healthchecksui
container_name: healthapp
restart: always
environment:
HealthChecks-UI__HealthChecks__0__Name: web
HealthChecks-UI__HealthChecks__0__Uri: http://web/healthz
ports:
- "8083:80"
mongodb:
image: mongo
container_name: "mongodb"
ports:
- "27017:27017"
mysqldb:
image: mysql:5
command: --default-authentication-plugin=mysql_native_password
container_name: "mysqldb"
deploy:
replicas: 1
endpoint_mode: dnsrr
environment:
MYSQL_ROOT_PASSWORD: root
ports:
- "3306:3306"
redis:
image: redis
container_name: "redis"
deploy:
replicas: 1
endpoint_mode: dnsrr
ports:
- "6379:6379"
rabbitmq:
image: rabbitmq:3-management
container_name: 'rabbitmq'
deploy:
replicas: 1
endpoint_mode: dnsrr
ports:
- "5672:5672"
- "15672:15672"
environment:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
prom:
image: quay.io/prometheus/prometheus:v2.0.0
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
command: "--config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/prometheus"
ports:
- 9090:9090
depends_on:
- exporter
exporter:
image: prom/node-exporter:latest
ports:
- "9100:9100"
grafana:
image: grafana/grafana
ports:
- "3000:3000"
environment:
- GF_INSTALL_PLUGINS=grafana-piechart-panel
depends_on:
- prom