Skip to content

migasfree/migasfree-docker

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
mf
 
 
 
 

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.

About

Provides an isolated migasfree server to run in one host

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published