-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
84 lines (78 loc) · 1.83 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
version: '3.8'
services:
influxdb:
image: influxdb:1.8-alpine
env_file: config/influxdb.env
volumes:
- influxdb_data:/var/lib/influxdb:rw,delegated
ports:
- '8086:8086'
grafana:
image: grafana/grafana:8.4.1
depends_on:
- influxdb
links:
- redis
env_file: config/grafana.env
ports:
- '3000:3000'
volumes:
- grafana_data:/var/lib/grafana:rw,delegated
- ./grafana/provisioning/:/etc/grafana/provisioning/
- ./grafana/dashboards/:/var/lib/grafana/dashboards/
mysql:
restart: unless-stopped
image: mysql/mysql-server:8.0
env_file: config/mysql.env
volumes:
- mysql_data:/var/lib/mysql
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-p${DB_PASSWORD}" ]
retries: 3
timeout: 5s
ports:
- "33006:3306"
redis:
image: redis:6-alpine
restart: always
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
retries: 3
timeout: 5s
php:
build:
context: ./php
depends_on:
influxdb:
condition: service_started
mysql:
condition: service_healthy
redis:
condition: service_healthy
env_file:
- config/mysql.env
- config/php.env
- config/influxdb.env
ports:
- '8080:80'
# - '8443:443'
volumes:
- ./php/src:/app:rw,cached
- ./php/entrypoint.d:/entrypoint.d:rw,cached
environment:
- WEB_DOCUMENT_ROOT=/app/public
- PHP_DISPLAY_ERRORS=1
- PHP_MEMORY_LIMIT=2048M
# - PHP_MAX_EXECUTION_TIME=-1
# - XDEBUG_MODE=debug
# - XDEBUG_START_WITH_REQUEST=yes
# - XDEBUG_CLIENT_PORT=9000
# - XDEBUG_CLIENT_HOST=docker.local
# - XDEBUG_MAX_NESTING_LEVEL=1000
volumes:
grafana_data:
driver: local
influxdb_data:
driver: local
mysql_data:
driver: local