-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (38 loc) · 1.03 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
x-database-variables: &database-variables
SPRING_DATASOURCE_URL: jdbc:mariadb://mariadb_springboot_essentials:3306/springboot_essentials_anime?createDatabaseIfNotExist=true
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: root
services:
db:
image: mariadb
container_name: mariadb_springboot_essentials
environment:
MARIADB_ROOT_PASSWORD: root
ports:
- 3306:3306
volumes:
- devdojo_data:/var/lib/mysql
prometheus:
image: prom/prometheus
container_name: prometheus
volumes:
- ./src/main/resources/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- --config.file=/etc/prometheus/prometheus.yml
ports:
- 9090:9090
extra_hosts:
- "host.docker.internal:host-gateway"
grafana:
image: grafana/grafana
container_name: grafana
ports:
- 3000:3000
springboot-essentials:
image: lucasoliveirabr/springboot-essentials:1.0.0
ports:
- 8080:8080
environment:
<<: *database-variables
volumes:
devdojo_data: