-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
76 lines (72 loc) · 1.75 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
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
70
71
72
73
74
75
76
version: "3.7"
services:
backend:
image: garbage_classifier
# env_file: ./.env
build: .
restart: always
# environment:
# SPRING_APPLICATION_JSON: '{
# "spring.datasource.url" : "jdbc:mysql://mysqldb:$MYSQLDB_DOCKER_PORT/$MYSQLDB_DATABASE?useSSL=false",
# "spring.datasource.username" : "$MYSQLDB_USER",
# "spring.datasource.password" : "$MYSQLDB_ROOT_PASSWORD",
# "spring.jpa.properties.hibernate.dialect" : "org.hibernate.dialect.MySQL5InnoDBDialect",
# "spring.jpa.hibernate.ddl-auto" : "update"
# }'
ports:
- "127.0.0.1:8080:8080"
depends_on:
- "mysql"
mysql:
image: mysql
# env_file: ./.env
environment:
MYSQL_ROOT_PASSWORD: "AvenParking"
MYSQL_DATABASE: "garbage_classifier"
MYSQL_USER: "test"
MYSQL_PASSWORD: "123456"
MYSQL_TCP_PORT: 3306
ports:
- "3307:3306"
expose:
- 3307
phpmyadmin:
image: phpmyadmin
ports:
- "127.0.0.1:9100:80"
environment:
- PMA_HOST=mysql
depends_on:
- "mysql"
prometheus:
image: prom/prometheus
container_name: prometheus
volumes:
- ./env/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
grafana:
image: grafana/grafana
container_name: grafana
ports:
- "4000:3000"
env_file:
- ./env/grafana.env
redis:
restart: always
container_name: redis
image: redis:alpine
ports:
- "6379:6379"
volumes:
- /data/redis-data:/data
rabbitmq:
image: rabbitmq:3.9.10-management
hostname: rabbitmq
environment:
- RABBITMQ_DEFAULT_VHOST=/
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
ports:
- "5672:5672"
- "15672:15672"