我是通过Docker Compose 安装的,没有装到nginx。
下面是我的Yml
version: '3.5'
services:
db:
image: mariadb
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
volumes:
- "/mnt/user/appdata/kodbox/db:/var/lib/mysql"
environment:
- "TZ=Asia/Shanghai"
- "MYSQL_ROOT_PASSWORD=*"
- "MYSQL_DATABASE="
- "MYSQL_USER="
- "MYSQL_PASSWORD=*"
restart: always
app:
image: kodcloud/kodbox
ports:
- "8668:80"
links:
- db
- redis
volumes:
- "/mnt/user/appdata/kodbox/site:/var/www/html"
- "/mnt/user:/data"#你的本地目录映射给kodbox
restart: always
redis:
image: redis:alpine
environment:
- "TZ=Asia/Shanghai"
restart: always