-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (43 loc) · 893 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (43 loc) · 893 Bytes
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
version: '3'
services:
app:
build: ./app
container_name: app
command: go run /go/src/app/main.go
ports:
- 5000:5000
volumes:
- ./app:/go/src/app
links:
- mysql
mysql:
build: ./db/mysql
container_name: mysql
restart: always
env_file:
- ./db/mysql/.env
volumes:
- ./db/mysql/initdb.d:/docker-entrypoint-initdb.d
- ./db/mysql/mount:/var/lib/mysql
ports:
- 3306:3306
prometheus:
build: ./metrics/prometheus
restart: always
container_name: prometheus
ports:
- 9090:9090
links:
- app
grafana:
build: ./metrics/grafana
ports:
- 3000:3000
user: "104"
env_file:
- ./metrics/grafana/.env
links:
- prometheus
volumes:
- ./metrics/grafana/mount:/var/lib/grafana
- ./metrics/grafana/dashboards:/var/lib/grafana/dashboards