flarum-docker/docker-compose.yml

40 lines
1.0 KiB
YAML

version: '3'
services:
flarum:
# image: git.snyman.info/raoul/flarum:latest
build: .
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
MAIL_DRIVER: smtp
MAIL_HOST: mail.example.com
MAIL_PORT: 465
MAIL_ENCRYPTION: ssl
MAIL_USERNAME: admin@example.com
MAIL_PASSWORD: secret
EXTENSIONS: "fof/upload fof/nightmode fof/polls"
ports:
- "9000:80"
depends_on:
- mysql
volumes:
- "./data/extensions:/flarum/app/extensions"
- "./data/assets:/flarum/app/public/assets"
- "./data/storage/logs:/flarum/app/storage/logs"
mysql:
image: mariadb:11
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: flarum
MYSQL_USER: flarum
MYSQL_PASSWORD: flarum
restart: unless-stopped
volumes:
- "./data/mysql:/var/lib/mysql"