-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
69 lines (64 loc) · 1.53 KB
/
docker-compose.yaml
File metadata and controls
69 lines (64 loc) · 1.53 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: '3.4'
services:
api:
container_name: api
hostname: api
image: juliocesarmidia/java-spring-rest-api:latest
build:
context: ./
restart: on-failure
networks:
- subnet_0
ports:
- 8000:8000
environment:
JAVA_OPTIONS: -Xmx400m
JDBC_HOST: ${JDBC_HOST}
JDBC_PORT: ${JDBC_PORT}
JDBC_USER: ${JDBC_USER}
JDBC_PASS: ${JDBC_PASS}
JDBC_DATABASE: ${JDBC_DATABASE}
JWT_TOKEN_SECRET_KEY: ${JWT_TOKEN_SECRET_KEY:-secret}
JWT_TOKEN_EXPIRE_LENGTH: ${JWT_TOKEN_EXPIRE_LENGTH:-3600000}
TZ: America/Sao_Paulo
SPRING_BOOT_ENVIRONMENT: Development
volumes:
- $PWD/uploads/:/usr/src/app/uploads/
- ~/.m2:/root/.m2
mysql:
container_name: mysql
hostname: mysql
image: mysql:8.0
restart: on-failure
networks:
- subnet_0
ports:
- '3336:3306'
environment:
MYSQL_ROOT_PASSWORD: ${JDBC_PASS}
MYSQL_DATABASE: ${JDBC_DATABASE}
MYSQL_ROOT_HOST: "%"
volumes:
- mysql-volume:/var/lib/mysql
prometheus:
container_name: prometheus
hostname: prometheus
image: prom/prometheus:latest
command: [
"--config.file=/prometheus-config/prometheus.yaml",
"--web.config.file=/prometheus-config/web.yaml"
]
restart: on-failure
networks:
- subnet_0
ports:
- 9090:9090
volumes:
- ./prometheus/:/prometheus-config
- prometheus-data:/prometheus
networks:
subnet_0:
driver: bridge
volumes:
mysql-volume: {}
prometheus-data: {}