Giter VIP home page Giter VIP logo

passwork-docker-compose's Introduction

Install Passwork using Docker Compose

Based upon https://github.com/passwork-me/docker and https://www.notion.so/Passwork-Manuals-e5aa17375b3d49d282e4279982c255ac

Prerequisites

Setup

Clone this repository onto your production server.

git clone https://github.com/mll-lab/passwork-docker-compose.git passwork
cd passwork

Now initialize and update the actual site as a submodule.

git submodule init && git submodule update

This configuration enforces the use of SSL. Put your certificate and key under:

  • conf/ssl/site.crt
  • conf/ssl/site.key

Run the setup script:

./setup.sh

The app should be up and running shortly thereafter. Check the status with

docker-compose ps

Open the page in your browser to get to the Sign Up page.

Fill in login and password for the first user. This user will become the owner and administrator of your installation. Click Upload keys and select *.lic and reginfo.json file.

Usage

Start the application

docker-compose up -d

Stop the application

docker-compose down

Interactive shell into a container

docker-compose exec web sh

Mail Configuration

Postfix is used to send emails.

You can edit the configuration files that are stored at conf/postfix

Don’t forget to reload Postfix to apply changes:

docker-compose exec web service postfix reload

Backup

Read how backup's generally work in the Backups manual

Mount a volume into the mongo container by modifying docker-compose.yml. The following is only an example, the change depends upon the mount point on your system.

  mongo:
    # mongo > db.version() => 3.0.15
    image: passwork/mongo
    volumes:
    - ./conf/mongo:/server/conf
    - ./log/mongo:/server/log
    - ./data/mongo:/server/data
+   - /mnt/backup:/server/backup

Run docker-compose up -d to apply the changes.

Create a backup through:

./backup.sh

This will create an archive named passwork-%Y-%m-%d with the current date, e.g. passwork-2019-04-20.

Restore a backup:

docker-compose exec mongo mongorestore /server/backup/passwork-xxxx-xx-xx

When errors pop up during the restore process, you might want to use the --drop option to completely reset the database.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.