Xenforo2 Forum Software in Docker image.
- php8.3-fpm-1.0 or latest (Dockerfile)
- php8.1-fpm-1.0 (Dockerfile)
- php8.0-fpm-0.1 (Dockerfile)
- php7.3-fpm-1.0 (Dockerfile)
- php7.1-fpm-1.0 (Dockerfile)
version: '2'
services:
db:
image: mysql:latest
container_name: xenforo_mysql
command: --default-authentication-plugin=mysql_native_password --innodb-use-native-aio=0
restart: always
networks:
- xenforo
volumes:
- ./volumes/mysql:/var/lib/mysql
- ./volumes/mysql-log:/var/log/mysql/
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
php:
container_name: xenforo_php
image: drivencode/xenforo2:latest
restart: always
depends_on:
- db
networks:
- xenforo
volumes:
- ${XENFORO_APP_PATH}:/var/xenforo
nginx:
container_name: xenforo_nginx
image: nginx:latest
restart: always
ports:
- 80
networks:
- xenforo
volumes_from:
- php
volumes:
- ${XENFORO_APP_PATH}:/var/xenforo
- ./conf/nginx.conf:/etc/nginx/conf.d/default.conf
- ./volumes/nginx:/var/log/nginx
networks:
xenforo: