Skip to content

Docker-based deployment of Syspass.

License

Notifications You must be signed in to change notification settings

trecnoc/syspass-docker

Repository files navigation

Production Docker deployment for Syspass

This project enables a Docker-based deployment of Syspass, based on examples provided in the Syspass documentation.

Notes

Requirements

  • A Docker instance running version 18.06.0+ of the Docker engine that supports version 3.7 or greater of the docker-compose file specification.
  • An environment where port 80 and 443 of the host machine can be forwarded to the Nginx container for Syspass (80 is required for Let's Encrypt certificate generation.)

Instructions

Create the following files that contain configuration information not already defined in docker-compose:

  • ./.env should contain definitions for SUBNET and SYSPASS_IP. SUBNET is the network specification for the default network that docker-compose will use for Syspass (e.g. 172.30.0.0/24), and SYSPASS_IP is an IPv4 address within that subnet that docker-compose should assign to the syspass container (e.g. 172.30.0.10 if using the earlier value for SUBNET). This is required to avoid an issue where Syspass can no longer authenticate against the database that was initialized if the IP address of the Syspass container ever changes (e.g. due to running docker-compose down and docker-compose up again). This issue is discussed but unresolved here.
  • ./mariadb/mariadb-variables.env should contain a definition for MYSQL_ROOT_PASSWORD with the root password of the MariaDB instance. You will need this password during Syspass setup - choose something secure.
  • ./syspass/syspass-variables.env should contain definitions for:
    • VIRTUAL_HOST and LETSENCRYPT_HOST which are the publicly accessible hostname of your Syspass instance, e.g. syspass.yourdomainhere.com.
    • DEFAULT_EMAIL, an email address that the Let's Encrypt project can use to email you about important information related to your SSL certificates (e.g. expiry warnings, security issues).

Once those files are configured, you should be able to start Syspass with docker-compose -d up. Please note that Syspass may take a minute or two the first time it is started.

About

Docker-based deployment of Syspass.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published