-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
54 lines (50 loc) · 1.2 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
version: '3'
services:
goapp:
build: .
volumes:
- .:/app
ports:
- "8181:8181"
mysql:
image: mysql:5.7
ports:
- "3306:3306"
platform: linux/amd64
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=orders
- MYSQL_PASSWORD=root
volumes:
- ./.docker/mysql:/var/lib/mysql
rabbitmq:
image: rabbitmq:3.8.16-management
container_name: rabbitmq
hostname: rabbitmq
ports:
- "5672:5672"
- "15672:15672"
- "15692:15692"
environment:
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
- RABBITMQ_DEFAULT_VHOST=/
prometheus:
image: prom/prometheus
container_name: prometheus
hostname: prometheus
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
grafanaservice:
image: grafana/grafana
container_name: grafana
hostname: grafana
ports:
- "3000:3000"