flarum-docker/docker-compose.yml

40 lines
1.0 KiB
YAML
Raw Normal View History

2023-08-05 17:42:27 +00:00
version: '3'
services:
flarum:
2023-10-19 04:46:59 +00:00
# image: git.snyman.info/raoul/flarum:latest
build: .
2023-08-05 17:42:27 +00:00
environment:
MYSQL_DATABASE: flarum
MYSQL_USER: flarum
MYSQL_PASSWORD: flarum
MYSQL_HOST: mysql
SITE_URL: http://192.168.88.51:8000
ADMIN_USER: admin
ADMIN_PASSWORD: password
ADMIN_EMAIL: admin@example.com
2023-08-05 17:42:27 +00:00
MAIL_DRIVER: smtp
MAIL_HOST: mail.example.com
2023-08-05 17:42:27 +00:00
MAIL_PORT: 465
MAIL_ENCRYPTION: ssl
MAIL_USERNAME: admin@example.com
2023-08-05 17:42:27 +00:00
MAIL_PASSWORD: secret
2023-10-19 04:46:59 +00:00
EXTENSIONS: "fof/upload fof/nightmode fof/polls"
2023-08-05 17:42:27 +00:00
ports:
2023-10-19 04:46:59 +00:00
- "9000:80"
2023-08-05 17:42:27 +00:00
depends_on:
- mysql
2023-08-05 20:17:52 +00:00
volumes:
- "./data/extensions:/flarum/app/extensions"
- "./data/assets:/flarum/app/public/assets"
2023-10-19 04:46:59 +00:00
- "./data/storage/logs:/flarum/app/storage/logs"
2023-08-05 17:42:27 +00:00
mysql:
2023-08-05 20:17:52 +00:00
image: mariadb:11
2023-08-05 17:42:27 +00:00
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: flarum
MYSQL_USER: flarum
MYSQL_PASSWORD: flarum
2023-08-05 20:17:52 +00:00
restart: unless-stopped
volumes:
- "./data/mysql:/var/lib/mysql"