diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..17de768 --- /dev/null +++ b/compose.yaml @@ -0,0 +1,24 @@ +services: + pocket-id: + image: ghcr.io/pocket-id/pocket-id + restart: unless-stopped + env_file: .env + ports: + - 3002:80 + volumes: + - "${DATA_MNT}:/app/backend/data" + networks: + - proxy + healthcheck: + test: "curl --fail http://localhost/health" + interval: 1m30s + timeout: 5s + retries: 2 + start_period: 10s + security_opt: + - no-new-privileges:true + +networks: + proxy: + external: true + diff --git a/exampl.env b/exampl.env new file mode 100644 index 0000000..e919430 --- /dev/null +++ b/exampl.env @@ -0,0 +1,7 @@ +# See the documentation for more information: https://pocket-id.org/docs/configuration/environment-variables +PUBLIC_APP_URL=https://pocket-id.housh.dev +TRUST_PROXY=true +MAXMIND_LICENSE_KEY=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 +PUID=1000 +PGID=1000 +DATA_MNT=/mnt