From 72ddae6f9d58aed6aaec9c038782bb17def50a1d Mon Sep 17 00:00:00 2001 From: xiaomai Date: Sun, 3 May 2026 19:14:57 +0800 Subject: [PATCH] chore: add Umami analytics and adjust docker-compose ports Inject Umami analytics script into frontend index.html Map backend port to 20016 and remove exposed postgres port --- docker-compose.yml | 8 +++----- frontend/index.html | 12 ++++++++++++ 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index e1ea38a..70d1769 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,8 +5,6 @@ services: POSTGRES_DB: pokopia POSTGRES_USER: pokopia POSTGRES_PASSWORD: pokopia - ports: - - "5432:5432" volumes: - postgres18_data:/var/lib/postgresql healthcheck: @@ -26,11 +24,11 @@ services: FRONTEND_ORIGIN: http://localhost:20015 APP_ORIGIN: http://localhost:20015 UPLOAD_DIR: /app/uploads - BACKEND_PUBLIC_ORIGIN: http://localhost:3001 + BACKEND_PUBLIC_ORIGIN: http://localhost:20016 RESEND_API_KEY: ${RESEND_API_KEY:-} EMAIL_FROM: "${EMAIL_FROM:-Pokopia Wiki }" ports: - - "3001:3001" + - "20016:3001" volumes: - backend_uploads:/app/uploads depends_on: @@ -42,7 +40,7 @@ services: context: . dockerfile: frontend/Dockerfile args: - VITE_API_BASE_URL: ${VITE_API_BASE_URL:-http://localhost:3001} + VITE_API_BASE_URL: ${VITE_API_BASE_URL:-http://localhost:20016} VITE_SITE_URL: ${VITE_SITE_URL:-https://pokopiawiki.tootaio.com} environment: PORT: 20015 diff --git a/frontend/index.html b/frontend/index.html index 67793e9..8d342e6 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -28,6 +28,18 @@ content="Browse Pokopia Wiki for Pokemon, habitats, items, recipes, daily tasks, and Life community posts for Pokemon Pokopia." /> + Pokopia Wiki - Pokemon Pokopia Guide