diff --git a/docker-compose/passbolt/docker-compose.yml b/docker-compose/passbolt/docker-compose.yml new file mode 100644 index 0000000..4911085 --- /dev/null +++ b/docker-compose/passbolt/docker-compose.yml @@ -0,0 +1,41 @@ +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: \ No newline at end of file