Created
July 17, 2023 09:31
-
-
Save Couto/9dd905f231edb20e350455e4538cf09d to your computer and use it in GitHub Desktop.
Passbolt docker-compose with default envs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.9" | |
services: | |
db: | |
image: mariadb:10.11 | |
restart: unless-stopped | |
environment: | |
MYSQL_RANDOM_ROOT_PASSWORD: "true" | |
MYSQL_DATABASE: "${MYSQL_DATABASE:-passbolt}" | |
MYSQL_USER: "${MYSQL_USER:-passbolt}" | |
MYSQL_PASSWORD: "${MYSQL_PASSWORD:-passbolt}" | |
volumes: | |
- database_volume:/var/lib/mysql | |
passbolt: | |
image: passbolt/passbolt:latest-ce | |
#Alternatively you can use rootless: | |
#image: passbolt/passbolt:latest-ce-non-root | |
restart: unless-stopped | |
depends_on: | |
- db | |
environment: | |
APP_FULL_BASE_URL: "${APP_FULL_BASE_URL:-https://passbolt.local} | |
DATASOURCES_DEFAULT_HOST: "db" | |
DATASOURCES_DEFAULT_USERNAME: "${MYSQL_USER:-passbolt}" | |
DATASOURCES_DEFAULT_PASSWORD: "${MYSQL_PASSWORD:-passbolt}" | |
DATASOURCES_DEFAULT_DATABASE: "${MYSQL_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: | |
# - 80:80 | |
# - 443:443 | |
#Alternatively for non-root images: | |
- 80:8080 | |
- 443:4433 | |
volumes: | |
database_volume: | |
gpg_volume: | |
jwt_volume: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment