-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
66 lines (59 loc) · 1.6 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
version: '3.3'
services:
influxdb:
image: influxdb:latest
container_name: aura-influxdb
ports:
- '8086:8086'
volumes:
- influxdb-storage:/var/lib/influxdb
environment:
# Defautl db
- INFLUXDB_DB=${INFLUXDB_DATABASE}
- INFLUXDB_ADMIN_USER=${INFLUXDB_USERNAME}
- INFLUXDB_ADMIN_PASSWORD=${INFLUXDB_PASSWORD}
mysql:
image: mysql:5.7
container_name: aura-mysql
restart: always
ports:
- '3306:3306'
command: --default-authentication-plugin=mysql_native_password
volumes:
- ./mysql/mysqld.cnf:/etc/mysql/mysql.conf.d/mysqld.cnf
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
postgres:
image: postgres:11
container_name: aura-postgres
ports:
- 5432:5432
volumes:
- postgres-storage:/docker-entrypoint-initdb.d
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DATABASE}
grafana:
image: grafana/grafana:7.3.4
container_name: aura-grafana
ports:
- '3000:3000'
volumes:
- grafana-storage:/var/lib/grafana
- ./conf/provisioning:/etc/grafana/provisioning
- ./conf/grafana.ini:/etc/grafana/grafana.ini
depends_on:
- influxdb
- mysql
- postgres
environment:
- GF_SECURITY_ADMIN_USER=${GRAFANA_USERNAME}
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_PASSWORD}
volumes:
influxdb-storage:
grafana-storage:
postgres-storage: