-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
59 lines (44 loc) · 1.27 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
version: "3"
services:
spider:
build: spider
depends_on:
db:
condition: service_healthy
command: ["python", "/app/supervisor.py" ]
restart: always
environment:
TZ: Asia/Shanghai
env_file:
- .env
volumes:
- ./spider:/app
db:
image: 'mysql/mysql-server'
command: --sql_mode="" --default-authentication-plugin=mysql_native_password
restart: always
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "--silent", "--password=${mysql_password}"]
interval: 3s
retries: 5
start_period: 30s
environment:
MYSQL_ROOT_PASSWORD: ${mysql_password}
MYSQL_DATABASE: ${mysql_database}
MYSQL_ROOT_HOST: '%'
TZ: Asia/Shanghai
env_file:
- .env
grafana:
image: 'grafana/grafana:8.1.8'
environment:
GF_INSTALL_PLUGINS: grafana-piechart-panel
ports:
- "8899:3000"
volumes:
- ./grafana/grafana.ini:/etc/grafana/grafana.ini
- ./grafana/provisioning/datasources/automatic.yml:/etc/grafana/provisioning/datasources/automatic.yml
- ./grafana/provisioning/dashboards/all.yml:/etc/grafana/provisioning/dashboards/all.yml
- ./grafana/dashboards/:/var/lib/grafana/dashboards
env_file:
- .env