-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yml
56 lines (53 loc) · 2.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
version: '3.5'
services:
grafana:
restart: always
build:
context: .
dockerfile: Dockerfile.grafana
args:
- GF_INSTALL_IMAGE_RENDERER_PLUGIN=true
- GRAFANA_VERSION=latest
volumes:
- ./grafana_data:/var/lib/grafana
- ./grafana/datasource.yaml:/etc/grafana/provisioning/datasources/datasource.yaml
- ./grafana/dashboard.yaml:/etc/grafana/provisioning/dashboards/dashboard.yaml
- ./grafana/dashboards/:/etc/grafana/provisioning/dashboards/
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
GF_SERVER_DOMAIN: ${GF_SERVER_DOMAIN}
GF_SERVER_ROOT_URL: ${GF_SERVER_ROOT_URL}
ports:
- "${GRAFANA_PORT}:3000"
database:
restart: always
image: mariadb:10.3
volumes:
- ./db:/var/lib/mysql
- ./sql:/docker-entrypoint-initdb.d
command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci', '--innodb-flush-method=littlesync', '--innodb-use-native-aio=OFF']
environment:
MYSQL_RANDOM_ROOT_PASSWORD: 1
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
app:
restart: always
build: .
volumes:
- ${MYSQL_SOCK}:/run/mysqld/mysqld.sock
environment:
GRAFANA_DATABASE: ${MYSQL_DATABASE}
GRAFANA_USER: ${MYSQL_USER}
MYSQL_PWD: ${MYSQL_PASSWORD}
MYSQL_CONNECTION_TYPE: ${MYSQL_CONNECTION_TYPE}
SCANNER_TYPE: ${SCANNER_TYPE}
SCANNER_HOST: ${SCANNER_HOST}
SCANNER_PORT: ${SCANNER_PORT}
SCANNER_USER: ${SCANNER_USER}
SCANNER_PASSWORD: ${SCANNER_PASSWORD}
SCANNER_DATABASE: ${SCANNER_DATABASE}
STATUS_DOWN: ${STATUS_DOWN}
CLEANUP_DAYS: ${CLEANUP_DAYS}