2023-02-27 10:19:11 +00:00
|
|
|
version: '3.9'
|
2023-02-27 13:09:29 +00:00
|
|
|
|
2023-02-27 10:19:11 +00:00
|
|
|
services:
|
|
|
|
db:
|
|
|
|
image: mariadb:10.3
|
2023-02-27 13:09:29 +00:00
|
|
|
container_name: passbolt-db
|
|
|
|
hostname: passbolt-db
|
2023-02-27 10:19:11 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
MYSQL_RANDOM_ROOT_PASSWORD: "true"
|
|
|
|
MYSQL_DATABASE: "passbolt"
|
|
|
|
MYSQL_USER: "passbolt"
|
|
|
|
MYSQL_PASSWORD: "P4ssb0lt"
|
|
|
|
volumes:
|
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/passbolt/mariadb:/var/lib/mysql
|
|
|
|
|
|
|
|
passbolt:
|
2023-02-27 13:09:29 +00:00
|
|
|
image: passbolt/passbolt:latest-ce # alternatively, you can use the rootless image passbolt/passbolt:latest-ce-non-root
|
|
|
|
container_name: passbolt
|
|
|
|
hostname: passbolt
|
2023-02-27 10:19:11 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
environment:
|
2023-02-27 13:17:10 +00:00
|
|
|
APP_FULL_BASE_URL: http://127.0.0.1:8543 # adjust http/https and add your hostname or domain
|
2023-02-27 10:19:11 +00:00
|
|
|
DATASOURCES_DEFAULT_HOST: "db"
|
|
|
|
DATASOURCES_DEFAULT_USERNAME: "passbolt"
|
|
|
|
DATASOURCES_DEFAULT_PASSWORD: "P4ssb0lt"
|
|
|
|
DATASOURCES_DEFAULT_DATABASE: "passbolt"
|
2023-02-27 13:28:15 +00:00
|
|
|
#EMAIL_DEFAULT_FROM_NAME: "Passbolt CE"
|
|
|
|
#EMAIL_DEFAULT_FROM: "passbolt@gmail.com"
|
|
|
|
#EMAIL_TRANSPORT_DEFAULT_HOST: smtp.gmail.com
|
|
|
|
#EMAIL_TRANSPORT_DEFAULT_PORT: 587
|
|
|
|
#EMAIL_TRANSPORT_DEFAULT_USERNAME: "smtp_user"
|
|
|
|
#EMAIL_TRANSPORT_DEFAULT_PASSWORD: "smtp_pass"
|
|
|
|
#EMAIL_TRANSPORT_DEFAULT_TLS: true # or false; default null
|
2023-02-27 10:19:11 +00:00
|
|
|
volumes:
|
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/passbolt/gpg:/etc/passbolt/gpg
|
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/passbolt/jwt:/etc/passbolt/jwt
|
|
|
|
command: ["/usr/bin/wait-for.sh", "-t", "0", "db:3306", "--", "/docker-entrypoint.sh"]
|
|
|
|
ports:
|
2023-02-27 13:17:10 +00:00
|
|
|
- 8543:80 # HTTP
|
|
|
|
- 8432:443 # HTTPS
|
|
|
|
# - 8543:8080 # alternative port mappings if rootless image is used
|
|
|
|
# - 8432:4433 # alternative port mappings if rootless image is used
|