Hi, I'm excited to use forum for my AI project, but have en issue.
The issue
Hi, I made such docker-compose file:
`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
expose:
- 8888
depends_on:
- mariadb
mariadb:
image: mariadb:10.5
container_name: mariadb
environment:
- MYSQL_ROOT_PASSWORD=examplepassword1
- MYSQL_DATABASE=flarum
- MYSQL_USER=flarum
- MYSQL_PASSWORD=examplepassword2
volumes:
- /mnt/docker/mysql/db:/var/lib/mysql
nginx:
image: nginx:latest
container_name: nginx
volumes:
- /mnt/docker/nginx/conf:/etc/nginx/conf.d
- /mnt/docker/nginx/logs:/var/log/nginx
ports:
- 80:80
depends_on:
- flarum
`
For nginx I also created such file:
`server {
listen 80;
server_name example.com;
location / {
proxy_pass http://flarum:8888;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location ~ /\.ht {
deny all;
}
}
`
Flarum information
flarum | [INFO] Setting folder permissions
mariadb | 2023-06-04 15:36:04+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.5.20+maria~ubu2004 started.
mariadb | 2023-06-04 15:36:05+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
mariadb | 2023-06-04 15:36:05+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.5.20+maria~ubu2004 started.
mariadb | 2023-06-04 15:36:06+00:00 [Note] [Entrypoint]: MariaDB upgrade not required
mariadb | 2023-06-04 15:36:06 0 [Note] Starting MariaDB 10.5.20-MariaDB-1:10.5.20+maria~ubu2004 source revision b735ca47738a1d2e995a429f40afd620eb7d8843 as process 1
mariadb | 2023-06-04 15:36:07 0 [Note] InnoDB: Uses event mutexes
mariadb | 2023-06-04 15:36:07 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
mariadb | 2023-06-04 15:36:07 0 [Note] InnoDB: Number of pools: 1
mariadb | 2023-06-04 15:36:07 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
mariadb | 2023-06-04 15:36:07 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)
mariadb | 2023-06-04 15:36:07 0 [Note] InnoDB: Using Linux native AIO
mariadb | 2023-06-04 15:36:07 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
mariadb | 2023-06-04 15:36:07 0 [Note] InnoDB: Completed initialization of buffer pool
mariadb | 2023-06-04 15:36:07 0 [Note] InnoDB: 128 rollback segments are active.
mariadb | 2023-06-04 15:36:07 0 [Note] InnoDB: Creating shared tablespace for temporary tables
mariadb | 2023-06-04 15:36:07 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
mariadb | 2023-06-04 15:36:07 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
mariadb | 2023-06-04 15:36:07 0 [Note] InnoDB: 10.5.20 started; log sequence number 1657480; transaction id 1389
mariadb | 2023-06-04 15:36:07 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
mariadb | 2023-06-04 15:36:07 0 [Note] Plugin 'FEEDBACK' is disabled.
mariadb | 2023-06-04 15:36:07 0 [Note] Server socket created on IP: '::'.
mariadb | 2023-06-04 15:36:07 0 [Note] Reading of all Master_info entries succeeded
mariadb | 2023-06-04 15:36:07 0 [Note] Added new Master_info '' to hash table
mariadb | 2023-06-04 15:36:07 0 [Note] mysqld: ready for connections.
mariadb | Version: '10.5.20-MariaDB-1:10.5.20+maria~ubu2004' socket: '/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution
mariadb | 2023-06-04 15:36:07 0 [Note] InnoDB: Buffer pool(s) load completed at 230604 15:36:07
nginx | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
nginx | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
nginx | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
nginx | 10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf is not a file or does not exist
nginx | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
nginx | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
nginx | /docker-entrypoint.sh: Configuration complete; ready for start up
flarum | [INFO] Flarum already installed, init app...
flarum | Clearing the cache...
flarum | [INFO] No installed extensions
flarum | [INFO] Flarum already installed, init app: DONE
flarum | [INFO] End of startup script. Forum is starting.
Have no idea why, but I can't enter flarum page. @Magicalex or others - Could you help me, please?
Withoud the reverse proxy, Ive got Flarum page, but with error. With proxy, couldn't open page at all. Why this proxy is needed? I'm quite a noob when it comes to some web technologies.