forked from phpservermon/docker-phpservermonitor
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
46 lines (43 loc) · 1.07 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
version: '3.8'
services:
phpservermonitor:
build: .
image: phpservermonitor:latest
container_name: phpservermonitor
restart: always
environment:
- TIME_ZONE='Europe/Amsterdam'
- PSM_REFRESH_RATE_SECONDS=15
- PSM_AUTO_CONFIGURE=true
- MYSQL_HOST=db
- MYSQL_USER=phpservermonitor
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_DATABASE=phpservermonitor
- MYSQL_DATABASE_PREFIX=psm_
ports:
- 8080:80
volumes:
- /sessions
depends_on:
- db
db:
image: mariadb
container_name: phpservermonitor_mariadb
restart: always
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_USER=phpservermonitor
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_DATABASE=phpservermonitor
volumes:
- ./mariadb:/var/lib/mysql/phpservermonitor
# phpmyadmin:
# image: phpmyadmin/phpmyadmin
# container_name: phpservermonitor_phpmyadmin
# restart: always
# environment:
# - PMA_HOST=db
# ports:
# - 8081:80
# volumes:
# - /sessions