docker-compose文件
version: '2'
services:
db:
image: beercan1989/arm-mysql:latest
environment:
MYSQL_ROOT_PASSWORD: filerun
MYSQL_USER: filerun
MYSQL_PASSWORD: filerun
MYSQL_DATABASE: filerun
PUID: 1000
PGID: 1000
TZ: Asia/Shanghai
volumes:
- /filerun/db:/var/lib/mysql
ports:
- "3306:3306"
web:
image: ponte124/filerun:latest-arm64v8
environment:
TZ: Asia/Shanghai
FR_DB_HOST: db
FR_DB_PORT: 3306
FR_DB_NAME: filerun
FR_DB_USER: filerun
FR_DB_PASS: filerun
APACHE_RUN_USER: www-data
APACHE_RUN_USER_ID: 33
APACHE_RUN_GROUP: www-data
APACHE_RUN_GROUP_ID: 33
depends_on:
- db
links:
- db:db
ports:
- "80:80"
volumes:
- /filerun/html:/var/www/html
- /filerun/user-files:/user-files