Skip to content

Commit 2fc266d

Browse files
authored
Update .env and compose.yaml for environment variable management and configuration (#189)
1 parent 35e7bef commit 2fc266d

File tree

2 files changed

+22
-8
lines changed

2 files changed

+22
-8
lines changed

services/pocket-id/.env

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,27 @@
33
#COMPOSE_PROJECT_NAME= // only use in multiple deployments on the same infra
44
#Find Specific Variables in documentation https://stonith404.github.io/pocket-id/configuration/environment-variables
55
SERVICE=pocket-id
6-
IMAGE_URL=ghcr.io/pocket-id/pocket-id
6+
IMAGE_URL=ghcr.io/pocket-id/pocket-id:v2
77
SERVICEPORT=1411
88
TS_AUTHKEY=
99
DNS_SERVER=9.9.9.9
10+
11+
12+
# See the documentation for more information: https://pocket-id.org/docs/configuration/environment-variables
13+
14+
# These variables must be configured for your deployment:
15+
APP_URL=https://pocket-id.<YOUR-TAILSCALE-DOMAIN>.ts.net
16+
17+
# Encryption key (choose one method):
18+
# Method 1: Direct key (simple but less secure)
19+
# Generate with: openssl rand -base64 32
20+
ENCRYPTION_KEY=
21+
# Method 2: File-based key (recommended)
22+
# Put the base64 key in a file and point to it here.
23+
# ENCRYPTION_KEY_FILE=/path/to/encryption_key
24+
25+
# These variables are optional but recommended to review:
26+
TRUST_PROXY=true
27+
MAXMIND_LICENSE_KEY=
28+
PUID=1000
29+
PGID=1000

services/pocket-id/compose.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,7 @@ services:
5151
image: ${IMAGE_URL} # Image to be used
5252
network_mode: service:tailscale # Sidecar configuration to route ${SERVICE} through Tailscale
5353
container_name: app-${SERVICE} # Name for local container management
54-
environment:
55-
- PUID=1000
56-
- PGID=1000
57-
- TZ=Europe/Amsterdam
58-
#- PUBLIC_APP_URL=https://pocket-id.<your-ts-domain>.ts.net
59-
#- TRUST_PROXY=yes
60-
#- MAXMIND_LICENSE_KEY=
54+
env_file: .env
6155
volumes:
6256
- ./${SERVICE}-data:/app/backend/data
6357
depends_on:

0 commit comments

Comments
 (0)