From 0d2b10176bbb1020d1dd5980446734feb08b4ec7 Mon Sep 17 00:00:00 2001 From: crypt0rr <57799908+crypt0rr@users.noreply.github.com> Date: Sat, 10 Jan 2026 11:01:38 +0100 Subject: [PATCH] Update .env and compose.yaml for environment variable management and configuration --- services/pocket-id/.env | 22 +++++++++++++++++++++- services/pocket-id/compose.yaml | 8 +------- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/services/pocket-id/.env b/services/pocket-id/.env index 4386ef8..411fe82 100644 --- a/services/pocket-id/.env +++ b/services/pocket-id/.env @@ -3,7 +3,27 @@ #COMPOSE_PROJECT_NAME= // only use in multiple deployments on the same infra #Find Specific Variables in documentation https://stonith404.github.io/pocket-id/configuration/environment-variables SERVICE=pocket-id -IMAGE_URL=ghcr.io/pocket-id/pocket-id +IMAGE_URL=ghcr.io/pocket-id/pocket-id:v2 SERVICEPORT=1411 TS_AUTHKEY= DNS_SERVER=9.9.9.9 + + +# See the documentation for more information: https://pocket-id.org/docs/configuration/environment-variables + +# These variables must be configured for your deployment: +APP_URL=https://pocket-id..ts.net + +# Encryption key (choose one method): +# Method 1: Direct key (simple but less secure) +# Generate with: openssl rand -base64 32 +ENCRYPTION_KEY= +# Method 2: File-based key (recommended) +# Put the base64 key in a file and point to it here. +# ENCRYPTION_KEY_FILE=/path/to/encryption_key + +# These variables are optional but recommended to review: +TRUST_PROXY=true +MAXMIND_LICENSE_KEY= +PUID=1000 +PGID=1000 \ No newline at end of file diff --git a/services/pocket-id/compose.yaml b/services/pocket-id/compose.yaml index af860f4..a6b27d0 100644 --- a/services/pocket-id/compose.yaml +++ b/services/pocket-id/compose.yaml @@ -51,13 +51,7 @@ services: image: ${IMAGE_URL} # Image to be used network_mode: service:tailscale # Sidecar configuration to route ${SERVICE} through Tailscale container_name: app-${SERVICE} # Name for local container management - environment: - - PUID=1000 - - PGID=1000 - - TZ=Europe/Amsterdam - #- PUBLIC_APP_URL=https://pocket-id..ts.net - #- TRUST_PROXY=yes - #- MAXMIND_LICENSE_KEY= + env_file: .env volumes: - ./${SERVICE}-data:/app/backend/data depends_on: