mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-11-25 01:34:36 +01:00
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
version: '3.9'
|
|
services:
|
|
db:
|
|
image: mariadb:10.3
|
|
restart: unless-stopped
|
|
environment:
|
|
MYSQL_RANDOM_ROOT_PASSWORD: "true"
|
|
MYSQL_DATABASE: "passbolt"
|
|
MYSQL_USER: "passbolt"
|
|
MYSQL_PASSWORD: "P4ssb0lt"
|
|
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: https://passbolt.local
|
|
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:
|
|
- 80:80
|
|
- 443:443
|
|
#Alternatively for non-root images:
|
|
# - 80:8080
|
|
# - 443:4433
|
|
|
|
volumes:
|
|
database_volume:
|
|
gpg_volume:
|
|
jwt_volume: |