forked from PNU-P2K/webpage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml.example
51 lines (47 loc) · 1.27 KB
/
docker-compose.yml.example
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
version: '3'
services:
db:
image: mariadb:10
container_name: mariadb
ports:
- 3307:3306
environment:
MARIADB_DATABASE: 'p2k'
MARIADB_ROOT_PASSWORD: # password
MARIADB_ROOT_HOST: '%'
TZ: Asia/Seoul
volumes:
#- ~/docker/mariadb/etc/mysql/conf.d:/etc/mysql/conf.d:ro
#- ~/docker/mariadb/var/lib/mysql:/var/lib/mysql
#- ~/docker/mariadb/var/log/maria:/var/log/maria
- ./mariadb/conf.d:/etc/mysql/conf.d
- ./mariadb/data:/var/lib/mysql
- ./mariadb/initdb.d:/docker-entrypoint-initdb.d
command: ['--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci', '--bind-address=0.0.0.0']
application:
build: .
container_name: springboot
ports:
- 80:8080
- 443:443
depends_on:
- db
prometheus:
image: prom/prometheus:latest
container_name: prometheus
ports:
- "9090:9090"
volumes:
- ./src/main/resources/prometheus.yml:/etc/prometheus/prometheus.yml
grafana:
image: grafana/grafana:latest
container_name: grafana
user: "$UID:$GID"
ports:
- "3000:3000"
volumes:
- ./src/main/resources/grafana-data:/var/lib/grafana
depends_on:
- prometheus
environment:
- GF_SECURITY_ALLOW_EMBEDDING=true