Checklist
I have read intro post: About the Installation Issues category
I have read the tutorials, help and searched for similar issues
I provide relevant information about my server (component names and versions, etc.)
I provide a copy of my logs and healthcheck
I describe the steps I have taken to trouble shoot the problem
I describe the steps on how to reproduce the issue
Hey guys,
I am trying to setup Passbolt CE using the following tutorial without any problems on my VPS mashine which is running Ubuntu 2204 with Docker and Docker Compose.
Passbolt Help | Docker passbolt installation
So far so good - this all worked perfctly fine!
What I am now trying to achieve is, having the persistent volumes database/
gpg-volume/
jwt-volume/
stored inside my Passbolt folder located here:
~/docker/passbolt
Having all docker volumes inside my personal docker folder is kinda part of my personal backup strategy. I like having everything in place and handy.
My docker compose file looks like this. Nothing big changed so far, just the persistent volumes at ./
.
version: "3.9"
services:
db:
image: mariadb:10.11
restart: unless-stopped
environment:
MYSQL_RANDOM_ROOT_PASSWORD: "true"
MYSQL_DATABASE: "passbolt"
MYSQL_USER: "passbolt"
MYSQL_PASSWORD: "P4ssb0lt"
volumes:
- ./database:/var/lib/mysql
passbolt:
image: passbolt/passbolt:4.1.0-1-ce
#Alternatively you can use rootless:
#image: passbolt/passbolt:latest-ce-non-root
restart: unless-stopped
depends_on:
- db
environment:
APP_FULL_BASE_URL: https://passbolt.blubb.duckdns.org
DATASOURCES_DEFAULT_HOST: "db"
DATASOURCES_DEFAULT_USERNAME: "passbolt"
DATASOURCES_DEFAULT_PASSWORD: "P4ssb0lt"
DATASOURCES_DEFAULT_DATABASE: "passbolt"
volumes:
- ./gpg-volume:/etc/passbolt/gpg
- ./jwt-volume:/etc/passbolt/jwt
command:
[
"/usr/bin/wait-for.sh",
"-t",
"0",
"db:3306",
"--",
"/docker-entrypoint.sh",
]
ports:
- 8084:80
- 4434:443
#Alternatively for non-root images:
# - 80:8080
# - 443:4433
volumes:
database_volume:
gpg_volume:
jwt_volume:
Unfortunately, I get the following error when starting the containers.
-bash: line 1: /etc/passbolt/gpg/serverkey_private.asc: Permission denied
The folders for the persistent volumes where created but I don’t really know if the permissions are set correctly.
Any help will be highly appreciated.
Best regards
Daniel