Provides an isolated migasfree server to run in one host
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
images
mf
README.md

README.md

Migasfree Docker

Provides an isolated migasfree server to run in one host.

Requirements

  • 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

Install

  • 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
  • Configure:
        vi variables

Run

        . variables
        docker-compose up -d

Test it!

Open any browser and enter the website, e.g.:

xdg-open http://<FQDN>

Settings

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

Data persistence

In /var/lib/migasfree/ you will have all data. Make yourself a regular backup of this directory.