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

40 lines
1.4 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
image: docker.io/library/mariadb:11.3
2022-10-10 16:33:40 +02:00
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
image: docker.io/passbolt/passbolt:4.8.0-1-ce
2022-10-10 16:33:40 +02:00
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"]
restart: unless-stopped