Public | Automated Build

Last pushed: a year ago
Short Description
flarum
Full Description

Flarum forum Docker image

Instructions

Install Docker-Compose

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

add ssh keys of new server

cat ~/.ssh/id_rsa.pub | 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
CTRL + D

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 https://github.com/JaySunSyn/FlarumSSL.git)

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

Run

docker-compose up

Database details:

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

#Backup
rsync -av root@SERVER_IP:/flarumData /Users/jalalfathi/Documents/Development/Careanswers.co.uk/Backups/1/
rsync -av root@SERVER_IP:/flarumDatabase /Users/jalalfathi/Documents/Development/Careanswers.co.uk/Backups/1/

#Restore

on host

rsync -av /Users/jalalfathi/Documents/Development/Careanswers.co.uk/Backups/1/flarumData root@SERVER_IP:/
rsync -av /Users/jalalfathi/Documents/Development/Careanswers.co.uk/Backups/1/flarumDatabase root@SERVER_IP:/

on server

chmod -R 777 flarumData
chmod -R 777 flarumDatabase

Docker Pull Command
Owner
elfy
Source Repository

Comments (0)