ljh flarum 项目依然开 8000 端口,配置文件改成 80 端口。
如果是按照 https://github.com/mondediefr/docker-flarum 文档配置的,我想大概应该这个样子。如果不是,贴一下你的 docker-compose 和 .env 文件。
docker-compose.yml
version: "3"
services:
flarum:
image: mondedie/flarum:stable
container_name: flarum
env_file:
- /mnt/docker/flarum/flarum.env
volumes:
- /mnt/docker/flarum/assets:/flarum/app/public/assets
- /mnt/docker/flarum/extensions:/flarum/app/extensions
- /mnt/docker/flarum/storage/logs:/flarum/app/storage/logs
- /mnt/docker/flarum/nginx:/etc/nginx/flarum
ports:
- 8000:8888 <== 8000
depends_on:
- mariadb
flarum.env
- FORUM_URL=http://dev.zendure.tech:8000
+ FORUM_URL=https://dev.zendure.tech <== https, 80 端口