This project enables a Docker-based deployment of Syspass, based on examples provided in the Syspass documentation.
- Deploys an instance of Syspass 3.1.2, using several containers with
docker-compose
:- Syspass
- MariaDB
- Nginx
- SSL certificates are automatically generated using docker-letsencrypt-nginx-proxy-companion
- A Docker instance running version
18.06.0+
of the Docker engine that supports version3.7
or greater of thedocker-compose
file specification. - An environment where port
80
and443
of the host machine can be forwarded to the Nginx container for Syspass (80
is required for Let's Encrypt certificate generation.)
Create the following files that contain configuration information not already defined in docker-compose
:
./.env
should contain definitions forSUBNET
andSYSPASS_IP
.SUBNET
is the network specification for the default network thatdocker-compose
will use for Syspass (e.g.172.30.0.0/24
), andSYSPASS_IP
is an IPv4 address within that subnet thatdocker-compose
should assign to thesyspass
container (e.g.172.30.0.10
if using the earlier value forSUBNET
). 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 runningdocker-compose down
anddocker-compose up
again). This issue is discussed but unresolved here../mariadb/mariadb-variables.env
should contain a definition forMYSQL_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
andLETSENCRYPT_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.