Passbolt docker image with fix so that nginx user accessible to make the first admin account
127
Make the nginx user can be used to create the first admin account
Passbolt is a free and open source password manager that allows team members to store and share credentials securely.
Passbolt requires mysql to be running. The following example use mysql official docker image with the default passbolt credentials.
$ docker run -e MYSQL_ROOT_PASSWORD=<your_root_password> \
-e MYSQL_DATABASE=passbolt \
-e MYSQL_USER=passbolt \
-e MYSQL_PASSWORD=P4ssb0lt \
mysql
Then you can start passbolt just by providing the database container ip in the db_host environment variable.
$ docker run -e DB_HOST=<mysql_container_ip> passbolt:local
Once the process is done, just navigate to the following url in your browser: https://passbolt_container_ip
Due to the limitations of docker networking under MacOS users should start the container exposing a port on the host:
$ docker run -p host_port:443 -e DB_HOST=<mysql_container_ip> passbolt:local
And access it using https://localhost:host_port
Passbolt docker image provides several environment variables to configure different aspects:
What if you already have a set of gpg keys and custom configuration files for passbolt? It it possible to mount the desired configuration files as volumes.
It is also possible to mount a ssl certificate on the following paths:
In the following example passbolt is launched with the defaults enabled usind mysql official docker container to store passbolt data:
$ docker run -e MYSQL_ROOT_PASSWORD=c0mplexp4ss \
-e MYSQL_DATABASE=passbolt \
-e MYSQL_USER=passbolt \
-e MYSQL_PASSWORD=P4ssb0lt \
mysql
Once mysql container is running we should extract its ip address. Let's assume 172.17.0.2 for this example
$ docker run -e DB_HOST=172.17.0.2 passbolt:local
Point your browser to the passbolt container ip or localhost:exposed_port.
In the following example passbolt is launched with a customized setup mounting and persisting configuration files. We also make use of mysql official docker container to store passbolt data.
$ docker run -e MYSQL_ROOT_PASSWORD=c0mplexp4ss \
-e MYSQL_DATABASE=passbolt \
-e MYSQL_USER=passbolt \
-e MYSQL_PASSWORD=P4ssb0lt \
mysql
Using docker inspect or any other method you can get the ip address of the mysql container. This example uses 172.17.0.2.
Once this container is running and you have the mysql ip address we run passbolt container mounting all configuration files stored under a example conf directory in $PWD
$ docker run -v $PWD/conf/app.php:/var/www/passbolt/app/Config/app.php \
-v $PWD/conf/core.php:/var/www/passbolt/app/Config/core.php \
-v $PWD/conf/database.php:/var/www/passbolt/app/Config/database.php \
-v $PWD/conf/email.php:/var/www/passbolt/app/Config/email.php \
-v $PWD/conf/private.asc:/var/www/passbolt/app/Config/gpg/serverkey.private.asc \
-v $PWD/conf/public.asc:/var/www/passbolt/app/Config/gpg/serverkey.asc \
passbolt:local
Navigate with the browser to the passbolt container ip or localhost:exposed_port
Content type
Image
Digest
Size
60.1 MB
Last updated
almost 9 years ago
docker pull anra54/passbolt:1.0