-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (58 loc) · 1.48 KB
/
docker-compose.yml
File metadata and controls
63 lines (58 loc) · 1.48 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
version: '3'
services:
mysql:
image: mysql:latest
container_name: bareuni-mysql
environment:
MYSQL_ROOT_PASSWORD: root1234!
MYSQL_DATABASE: bareuni
MYSQL_CHARSET: utf8mb4
MYSQL_COLLATION: utf8mb4_unicode_ci
TZ: Asia/Seoul
ports:
- "3306:3306"
# volumes:
# - ./data/:/var/lib/mysql
# - ./db/conf.d:/etc/mysql/conf.d
# - ./db/initdb.d:/docker-entrypoint-initdb.d
redis:
image: redis:latest
container_name: bareuni-redis
ports:
- "6379:6379"
prometheus:
image: prom/prometheus:v2.37.6
container_name: bareuni-prometheus
volumes:
- ./prometheus/config:/etc/prometheus
- ./prometheus/volume:/prometheus
ports:
- "9090:9090"
command:
- '--web.enable-lifecycle'
- '--config.file=/etc/prometheus/prometheus.yml'
- '--web.console.libraries=/etc/prometheus/console_libraries'
- '--web.console.templates=/etc/prometheus/consoles'
grafana:
image: grafana/grafana:9.4.7
container_name: bareuni-grafana
ports:
- "3000:3000"
volumes:
- ./grafana/volume:/var/lib/grafana
# spring-app:
# build:
# context: .
# dockerfile: Dockerfile
# container_name: bareuni-spring-app
# environment:
# DB_URL: localhost:3306/bareuni
# DB_USERNAME: root
# DB_PASSWORD: root1234!
# REDIS_HOST: localhost
# REDIS_PORT: 6379
# ports:
# - "8080:8080"
# depends_on:
# - mysql
# - redis