Skip to content

Instantly share code, notes, and snippets.

@jafow
Last active February 17, 2021 04:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jafow/c07a454b132776fa14b7092f31f24005 to your computer and use it in GitHub Desktop.
Save jafow/c07a454b132776fa14b7092f31f24005 to your computer and use it in GitHub Desktop.
passbolt demo

passbolt self-hosted demo

this runs a local docker container of passbolt for demo purposes.

running

⚠️ this was not tested on windows or mac but it should probably work :warning: make a folder on your computer and copy the files in this gist there.

open a terminal and do:

$ make up
docker-compose up -d
Creating network "passbolt_passbolt_network" with the default driver
Creating passbolt_db_1 ... done
Creating passbolt_passbolt_1 ... done
===============running on http://localhost:8080=======================

This should pull and launch a passbolt server and mysql database. If it shows an error, shut down and restart

make down && make up

Once it's running create the initial admin user:

make init-once

then open http://localhost:8080 in your browser and go through the onboarding.

finished

when you are done remember to turn off the lights and close the door behind you

make down

known not working

the email invitation would require a smtp server configured and I don't expect it'll work locally.

version: "3.2"
services:
passbolt:
image: passbolt/passbolt:2.13.5-debian
environment:
DATASOURCES_DEFAULT_HOST: db
DATASOURCES_DEFAULT_PASSWORD: donthackme
DATASOURCES_DEFAULT_USERNAME: passbolt
DATASOURCES_DEFAULT_DATABASE: passbolt
EMAIL_TRANSPORT_DEFAULT_USERNAME: passbolt
EMAIL_TRANSPORT_DEFAULT_PASSWORD: passbolt123
EMAIL_TRANSPORT_DEFAULT_CLASS_NAME: Mail
APP_FULL_BASE_URL: http://localhost:8080
links:
- db
depends_on:
- db
networks:
passbolt_network: {}
ports:
- "8443:443"
- "8080:80"
db:
image: mariadb
restart: always
environment:
MYSQL_ROOT_PASSWORD: pleasedonthackme
MYSQL_DATABASE: passbolt
MYSQL_USER: passbolt
MYSQL_PASSWORD: donthackme
networks:
- passbolt_network
volumes:
- ./mariadb_data:/var/lib/mysql
networks:
passbolt_network: {}
.PHONY: init-once up down
up:
docker-compose up -d
@echo "===============running on http://localhost:8080======================="
down:
docker-compose stop
docker-compose down
# creates inital admin user
# https://github.com/passbolt/passbolt_docker#start-passbolt-instance
init-once: up
docker-compose exec passbolt su -m -c "/var/www/passbolt/bin/cake \
passbolt register_user \
-u admin@passbolt.test \
-f admin \
-l user \
-r admin" -s /bin/sh www-data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment