christianlempa-boilerplates/docker-compose/passbolt/docker-compose.yaml

39 lines
1.3 KiB
YAML
Raw Normal View History

2023-05-25 14:26:13 +02:00
---
2022-11-07 08:53:08 +01:00
volumes:
passbolt-db:
2022-12-02 09:47:53 +01:00
passbolt-data-gpg:
passbolt-data-jwt:
2022-10-10 16:33:40 +02:00
services:
2022-12-02 09:47:53 +01:00
passbolt-db:
container_name: passbolt-db
2022-10-10 16:33:40 +02:00
image: mariadb:10.3
environment:
2022-12-02 09:47:53 +01:00
- MYSQL_RANDOM_ROOT_PASSWORD=true
- MYSQL_DATABASE=$PASSBOLT_DB_NAME
- MYSQL_USER=$PASSBOLT_DB_USER
- MYSQL_PASSWORD=$PASSBOLT_DB_PASS
2022-10-10 16:33:40 +02:00
volumes:
2022-11-07 08:53:08 +01:00
- passbolt-db:/var/lib/mysql
2023-05-25 14:26:13 +02:00
restart: unless-stopped
2022-10-10 16:33:40 +02:00
passbolt:
2022-12-02 09:47:53 +01:00
container_name: passbolt-app
2022-10-10 16:33:40 +02:00
image: passbolt/passbolt:latest-ce
depends_on:
2022-12-02 09:47:53 +01:00
- passbolt-db
2022-10-10 16:33:40 +02:00
environment:
2022-12-02 09:47:53 +01:00
- APP_FULL_BASE_URL=https://passbolt.domain.tld
- DATASOURCES_DEFAULT_HOST=passbolt-db
- DATASOURCES_DEFAULT_USERNAME=$PASSBOLT_DB_USER
- DATASOURCES_DEFAULT_PASSWORD=$PASSBOLT_DB_PASS
- DATASOURCES_DEFAULT_DATABASE=$PASSBOLT_DB_NAME
- EMAIL_TRANSPORT_DEFAULT_HOST=your-mail-server
- EMAIL_TRANSPORT_DEFAULT_PORT=587
- EMAIL_TRANSPORT_DEFAULT_USERNAME=$EMAIL_TRANSPORT_DEFAULT_USERNAME
- EMAIL_TRANSPORT_DEFAULT_PASSWORD=$EMAIL_TRANSPORT_DEFAULT_PASSWORD
- EMAIL_TRANSPORT_DEFAULT_TLS=true
- EMAIL_DEFAULT_FROM=no-reply@domain.tld
2022-10-10 16:33:40 +02:00
volumes:
2022-12-02 09:47:53 +01:00
- passbolt-data-gpg:/etc/passbolt/gpg
- passbolt-data-jwt:/etc/passbolt/jwt
command: ["/usr/bin/wait-for.sh", "-t", "0", "passbolt-db:3306", "--", "/docker-entrypoint.sh"]
2023-05-25 14:26:13 +02:00
restart: unless-stopped