diff --git a/blueprints/pocketbase/docker-compose.yml b/blueprints/pocketbase/docker-compose.yml index cf5e94f..0f85559 100644 --- a/blueprints/pocketbase/docker-compose.yml +++ b/blueprints/pocketbase/docker-compose.yml @@ -1,9 +1,22 @@ -version: "3.8" +version: "3.7" services: pocketbase: - image: spectado/pocketbase:0.23.3 + image: ghcr.io/muchobien/pocketbase:latest + container_name: pocketbase restart: unless-stopped + command: + - --encryptionEnv + - ENCRYPTION + environment: + ENCRYPTION: ${secret_key} + ports: + - "8090:8090" volumes: - - /etc/dokploy/templates/${HASH}/data:/pb_data - - /etc/dokploy/templates/${HASH}/public:/pb_public - - /etc/dokploy/templates/${HASH}/migrations:/pb_migrations + - /etc/data:/pb_data + - /etc/public:/pb_public + - /etc/hooks:/pb_hooks + healthcheck: + test: wget --no-verbose --tries=1 --spider http://localhost:8090/api/health || exit 1 + interval: 5s + timeout: 5s + retries: 5 \ No newline at end of file diff --git a/blueprints/pocketbase/template.toml b/blueprints/pocketbase/template.toml index 45f5798..78a6c29 100644 --- a/blueprints/pocketbase/template.toml +++ b/blueprints/pocketbase/template.toml @@ -1,5 +1,6 @@ [variables] main_domain = "${domain}" +secret_key = "${base64:32}" [config] env = {}