-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (38 loc) · 1.05 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
version: '2.4'
x-database-variables: &database-variables
SPRING_DATASOURCE_URL: jdbc:mysql://mysql:3308/anime?createDatabaseIfNotExist=true
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: teste
services:
db:
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_DATABASE: dbanime
MYSQL_ROOT_PASSWORD: teste
ports:
- "3308:3306"
mem_limit: 512m
prometheus:
image: prom/prometheus:latest
container_name: prometheus
volumes:
- "./src/main/resources/prometheus.yml:/etc/prometheus/prometheus.yml"
command: "--config.file=/etc/prometheus/prometheus.yml"
ports:
- "9090:9090"
mem_limit: 128m
grafana:
image: grafana/grafana:latest
container_name: grafana
ports:
- "3000:3000"
mem_limit: 128m
sprinboot2-essentials:
image: registry.hub.docker.com/guiroox2/sprinboot2-essentials:0.0.1-SNAPSHOT
ports:
- "8080:8080"
environment:
<<: *database-variables
mem_limit: 512m