Public | Automated Build

Last pushed: 2 years ago
Short Description
Full Description

Flarum forum Docker image


Install Docker-Compose

sudo apt-get -y install python-pip
sudo pip install docker-compose

add ssh keys of new server

cat ~/.ssh/ | ssh root@SERVER_IP "cat >> ~/.ssh/authorized_keys"

Copy certificates to server

ssh root@SERVER_IP
mkdir /certs

scp /Users/jalalfathi/Documents/Development/FlarumSSL/certs/ssl.chained.crt root@SERVER_IP:/certs/ssl.chained.crt
scp /Users/jalalfathi/Documents/Development/FlarumSSL/certs/ssl.key root@SERVER_IP:/certs/ssl.key

Start temp container (docker login)

docker run -it -d jalalio/flarumssl bash
docker ps
docker exec -i -t CONTAINER_ID bash
/etc/init.d/mysql start
/etc/init.d/php5-fpm start

Copy files to host and stop temp container

cd /
docker cp 2b3e541a7581:/var/www/flarum/. ./flarumData
docker cp 2b3e541a7581:/var/lib/mysql/. ./flarumDatabase
docker stop 2b3e541a7581

Edit permissions and ownership

chmod -R 777 flarumDatabase

Run Flarum

create docker compose file (or checkout from

touch docker-compose.yml && nano docker-compose.yml
copy and paste text & save


docker-compose up

Database details:

db: flarum
user: root
password: (without password)

rsync -av root@SERVER_IP:/flarumData /Users/jalalfathi/Documents/Development/
rsync -av root@SERVER_IP:/flarumDatabase /Users/jalalfathi/Documents/Development/


on host

rsync -av /Users/jalalfathi/Documents/Development/ root@SERVER_IP:/
rsync -av /Users/jalalfathi/Documents/Development/ root@SERVER_IP:/

on server

chmod -R 777 flarumData
chmod -R 777 flarumDatabase

Docker Pull Command
Source Repository