mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
52 lines
1.6 KiB
YAML
52 lines
1.6 KiB
YAML
version: "3"
|
|
|
|
services:
|
|
# you will need to add a user by hand
|
|
# example : docker-compose exec mypassbolt su -m -c "bin/cake passbolt register_user -u your@email.com -f yourname -l surname -r admin" -s /bin/sh www-data
|
|
# more info at https://github.com/passbolt/passbolt_docker
|
|
mypassbolt:
|
|
image: passbolt/passbolt
|
|
command:
|
|
[
|
|
"/usr/bin/wait-for.sh",
|
|
"-t",
|
|
"0",
|
|
"mydb:3306",
|
|
"--",
|
|
"/docker-entrypoint.sh",
|
|
]
|
|
networks:
|
|
bw-services:
|
|
aliases:
|
|
- mypassbolt
|
|
environment:
|
|
- DATASOURCES_DEFAULT_HOST=mydb
|
|
- DATASOURCES_DEFAULT_PASSWORD=db-user-pwd # replace with a stronger password (must match MYSQL_PASSWORD)
|
|
- DATASOURCES_DEFAULT_USERNAME=user
|
|
- DATASOURCES_DEFAULT_DATABASE=passbolt
|
|
- APP_FULL_BASE_URL=https://www.example.com # replace with your URL
|
|
labels:
|
|
- bunkerweb.SERVER_NAME=www.example.com
|
|
- bunkerweb.ALLOWED_METHODS=GET|POST|HEAD|PUT|DELETE
|
|
- bunkerweb.USE_REVERSE_PROXY=yes
|
|
- bunkerweb.REVERSE_PROXY_URL=/
|
|
- bunkerweb.REVERSE_PROXY_HOST=https://mypassbolt
|
|
|
|
mydb:
|
|
image: mariadb
|
|
volumes:
|
|
- ./db-data:/var/lib/mysql
|
|
networks:
|
|
bw-services:
|
|
aliases:
|
|
- mydb
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=db-root-pwd # replace with a stronger password
|
|
- MYSQL_DATABASE=passbolt
|
|
- MYSQL_USER=user
|
|
- MYSQL_PASSWORD=db-user-pwd # replace with a stronger password (must match DATASOURCES_DEFAULT_PASSWORD)
|
|
|
|
networks:
|
|
bw-services:
|
|
external:
|
|
name: bw-services
|