feat: payload cms

This commit is contained in:
2026-02-24 15:52:16 +01:00
parent a5d77fc69b
commit 4742630260
21 changed files with 255 additions and 22850 deletions

View File

@@ -1,4 +1,16 @@
services:
# Lightweight proxy: gives Caddy the labels to route klz.localhost → host Mac
klz-proxy:
image: alpine:latest
command: sleep infinity
restart: unless-stopped
networks:
- infra
labels:
- "caddy=http://${TRAEFIK_HOST:-klz.localhost}"
- "caddy.reverse_proxy=host.docker.internal:3100"
# Full Docker dev (use with `pnpm run dev:docker`)
klz-app:
build:
context: .
@@ -17,15 +29,24 @@ services:
NEXT_TELEMETRY_DISABLED: "1"
POSTGRES_URI: postgres://${DIRECTUS_DB_USER:-payload}:${DIRECTUS_DB_PASSWORD:-120in09oenaoinsd9iaidon}@klz-db:5432/${DIRECTUS_DB_NAME:-payload}
PAYLOAD_SECRET: ${DIRECTUS_SECRET:-fallback-secret-for-dev}
NODE_OPTIONS: "--max-old-space-size=4096"
CI: "true" # Prevents some interactive prompts during install
NODE_OPTIONS: "--max-old-space-size=2048"
UV_THREADPOOL_SIZE: "4"
NPM_TOKEN: ${NPM_TOKEN:-}
CI: "true"
volumes:
- .:/app
# Named volumes for persistence & performance (mintel.me standard)
- klz_node_modules:/app/node_modules
- klz_next_cache:/app/.next
- klz_turbo_cache:/app/.turbo
- klz_pnpm_store:/pnpm
- ~/.npmrc:/root/.npmrc:ro
- /app/.git
- /app/reference
- /app/data
deploy:
resources:
limits:
cpus: '4'
memory: 4G
command: >
sh -c "pnpm install && pnpm next dev --turbo --hostname 0.0.0.0"
labels:
@@ -62,4 +83,5 @@ volumes:
external: false
klz_node_modules:
klz_next_cache:
klz_turbo_cache:
klz_pnpm_store: