-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathdocker-compose.yml
49 lines (46 loc) · 967 Bytes
/
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
version: '2.1'
services:
db:
image: mariadb:latest
restart: always
environment:
- MYSQL_ROOT_PASSWORD=mypassword
- MYSQL_DATABASE=ktoreasydb
- MYSQL_USER=ktoreasyuser
- MYSQL_PASSWORD=ktoreasypassword
ports:
- "3308:3306"
healthcheck:
test: mysqladmin ping -h 127.0.0.1 -u$$MYSQL_USER -p$$MYSQL_PASSWORD
timeout: 3s
retries: 5
backend:
build: .
mem_limit: 300m
depends_on:
db:
condition: service_healthy
environment:
- ENVIRONMENT=dev
restart: always
ports:
- "3510:3500"
prometheus:
image: prom/prometheus
restart: always
ports:
- "3570:9090"
volumes:
- ./monitoring:/etc/prometheus/
links:
- backend
grafana:
image: grafana/grafana-oss:9.3.6
ports:
- "3000:3000"
user: "472"
volumes:
- ./monitoring/grafana:/var/lib/grafana
links:
- backend
- prometheus