HUB
Sign inSign up

jarvvski/xenforo-2-php-fpm

By jarvvski

•Updated about 5 years ago

Image
0

10K+

jarvvski/xenforo-2-php-fpm repository overview

⁠Xenforo 2 PHP FPM Container Image

A PHP 7.4, FPM based image to mount a xenforo installation inside of, and then use a reverse proxy to pass through requests

Includes php-fpm-healthcheck⁠ to make it easy to configure a container health check as shown in the usage example below.

Looking for a complete template to get started with Xenforo? Checkout my Xenforo Addon Template Repo⁠

⁠Alpine

Also supports an alpine linux tagged version, for smaller container sizes.

jarvvski/xenforo-2-php-fpm:alpine

⁠Usage

Please note this is just a quick sample for a Xenforo deployment, not a production ready config. You should use better secrets and environment variables across the board, as well as an nginx config to correct proxy requests to the php-fpm container.

version: '3.7'

services:
  xenforo:
    image: jarvvski/xenforo-2-php-fpm
    container_name: xenforo
    healthcheck:
      test: ["CMD", "php-fpm-healthcheck"]
      interval: 15s
      timeout: 10s
      retries: 3
      start_period: 1m
    restart: always
    working_dir: /var/www/html
    volumes:
      - xenforo-data:/var/www/html

  nginx:
    image: nginx:1.19-alpine
    container_name: xenforo-nginx
    networks:
      - edge
      - xenforo
    volumes_from:
      - xenforo_server

  database:
    container_name: xenforo-db
    networks:
      - xenforo
    image: mariadb
    volumes:
      - xenforo-database:/var/lib/mysql
    environment:
      MYSQL_DATABASE: xenforo
      MYSQL_USER: xenforo
      MYSQL_PASSWORD: secret
      MYSQL_ROOT_PASSWORD: secret

volumes:
  xenforo-database:
  xenforo-data:
Tag summary
Recent tags
Content type
Image
Digest
Size
267.7 MB
Last updated
about 5 years ago
docker pull jarvvski/xenforo-2-php-fpm:latest