docker-compose/flarum/docker-compose.yml
2022-12-25 03:05:38 +02:00

27 lines
744 B
YAML

version: '3.8'
services:
flarum:
image: mondedie/flarum:latest
container_name: flarum
volumes:
- ${BASE_DATA_DIR}/flarum/assets:/flarum/app/public/assets
- ${BASE_DATA_DIR}/flarum/extensions:/flarum/app/public/exstensions
- ${BASE_DATA_DIR}/flarum/logs:/flarum/app/storage/logs
- ${BASE_DATA_DIR}/flarum/nginx:/etc/nginx/flarum
ports:
- 80:8888
depends_on:
- mariadb
mariadb:
image: mariadb:latest
container_name: flarum_mariadb
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_PASSWORD}
volumes:
- ${BASE_DATA_DIR}/flarum/db:/var/lib/mysql
networks:
default:
name: flarum