Provides an isolated migasfree server to run in one host.
A FQDN for your server: If you don't have a FQDN you can add a register in /etc/hosts in order to emulate it in a test environment, or you can use the IP server too.
docker engine installed: https://docs.docker.com/engine/installation/
docker-compose installed: https://docs.docker.com/compose/install/
haveged installed: Migasfree server needs a certain entropy in the host to generate gpg keys. If your host is based in Debian run:
apt-get install haveged
- Download docker-compose.yml and variables file:
mkdir mf cd mf wget https://github.com/migasfree/migasfree-docker/raw/master/mf/docker-compose.yml wget https://github.com/migasfree/migasfree-docker/raw/master/mf/variables
. variables docker-compose up -d
Open any browser and enter the website, e.g.:
Edit the file /var/lib/migasfree/FQDN/conf/settings.py to customize the migasfree-server (http://fun-with-migasfree.readthedocs.org/en/master/part05.html#ajustes-del-servidor-migasfree).
Backup the Database
Migasfree server makes a dump of the database at POSTGRES_CRON config variable, but running this command will force the dump of the database in /var/lib/migasfree/FQDN/dump/migasfree.sql :
docker exec -ti migasfree.mydomain.com-db backup
Restore the DataBase
Copy a dump file in /var/lib/migasfree/FQDN/dump/migasfree.sql and run:
docker exec -ti migasfree.mydomain.com-db restore
In /var/lib/migasfree/ you will have all data. Make yourself a regular backup of this directory.