I recently attempted to install Flarum in Docker, but since I did not bind a domain name, I wanted to access it locally and plan to try it out, but an error occurred? May I ask how to solve it? Thank you
Something went wrong while trying to load the full version of this site. Try hard-refreshing this page to fix the error.
error:
Here is my setup environment
docker-compose.yaml
is as follows:
# https://github.com/RikoDEV/flarum-docker.git
version: "3"
services:
flarum:
image: ghcr.io/rikodev/flarum-docker:latest
container_name: flarum
env_file:
- ./flarum.env
volumes:
- ./app/public/assets:/flarum/app/public/assets
- ./app/extensions:/flarum/app/extensions
- ./app/storage/logs:/flarum/app/storage/logs
- ./app/nginx:/etc/nginx/flarum
ports:
- 8900:8888
depends_on:
- mariadb
mariadb:
image: mariadb:10.6
container_name: mariadb
environment:
- MYSQL_ROOT_PASSWORD=password1
- MYSQL_DATABASE=flarum
- MYSQL_USER=flarum
- MYSQL_PASSWORD=password1
volumes:
- ./db:/var/lib/mysql
and flarum.env
is as follows
DEBUG=true
FORUM_URL=http://172.0.0.1
DB_HOST=mariadb
DB_NAME=flarum
DB_USER=flarum
DB_PASS=password1
DB_PREF=flarum_
DB_PORT=3306
FLARUM_ADMIN_USER=admin
FLARUM_ADMIN_PASS=password1
FLARUM_ADMIN_MAIL=admin@domain.tld
FLARUM_TITLE=Test flarum