0

Raspberry Pi docker-compose setup for linuxserver/mariadb and FileRun

Thomas P 3 months ago updated 3 months ago 0

Hi there,

I wanted to share my docker-compose.yml file I use on a Raspberry Pi 3. In contrast to the official guide  FileRun installation using Docker for ARM CPUs I use the well-known linuxserver/mariadb image I am used to use on my x86 systems.

version: '2'

services:
  db:
    image: linuxserver/mariadb:arm32v7-latest
    restart: unless-stopped    
    environment:
      MYSQL_ROOT_PASSWORD: mariadbrootpassword
      MYSQL_USER: filerunuser
      MYSQL_PASSWORD: filerundbpassword
      MYSQL_DATABASE: filerundb
      PUID: 1000
      PGID: 1000
      TZ: Europe/Berlin
    volumes:
      - /home/pi/docker_data/filerun/db:/config/databases


  web:
    image: afian/filerun:arm32v7
    restart: unless-stopped    
    environment:
      FR_DB_HOST: db
      FR_DB_PORT: 3306
      FR_DB_NAME: filerundb
      FR_DB_USER: filerunuser
      FR_DB_PASS: filerundbpassword
      APACHE_RUN_USER: pi
      APACHE_RUN_USER_ID: 1000
      APACHE_RUN_GROUP: pi
      APACHE_RUN_GROUP_ID: 1000
    depends_on:
      - db
    links:
      - db:db
    ports:
      - "80:80"
    volumes:
      - /home/pi/docker_data/filerun/html:/var/www/html
      - /home/pi/docker_data/filerun/user-files:/user-files