Fix api build
This commit is contained in:
@@ -2,3 +2,10 @@
|
|||||||
# (no longer a Docker build arg — images only copy pre-built files).
|
# (no longer a Docker build arg — images only copy pre-built files).
|
||||||
# VITE_CLIENT_PUBLIC_URL=https://wheel.example.com
|
# VITE_CLIENT_PUBLIC_URL=https://wheel.example.com
|
||||||
VITE_CLIENT_PUBLIC_URL=http://localhost:5174
|
VITE_CLIENT_PUBLIC_URL=http://localhost:5174
|
||||||
|
|
||||||
|
# Docker / Dokploy — API DATABASE_URL is derived from these (do not set DATABASE_URL).
|
||||||
|
# Postgres only applies POSTGRES_PASSWORD on first volume init; changing it later
|
||||||
|
# does nothing unless you recreate the pg_data volume.
|
||||||
|
POSTGRES_USER=postgres
|
||||||
|
POSTGRES_PASSWORD=postgrespassword
|
||||||
|
POSTGRES_DB=lucky_wheel
|
||||||
|
|||||||
+4
-1
@@ -43,7 +43,10 @@ services:
|
|||||||
redis:
|
redis:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
environment:
|
environment:
|
||||||
- DATABASE_URL=${DATABASE_URL:-postgresql://postgres:postgrespassword@postgres:5432/lucky_wheel?schema=public}
|
# Always built from the same POSTGRES_* vars as the db service.
|
||||||
|
# A separate DATABASE_URL in Dokploy (e.g. password "postgres" from another
|
||||||
|
# stack) was authenticating as user postgres with the wrong password (P1000).
|
||||||
|
- DATABASE_URL=postgresql://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-postgrespassword}@postgres:5432/${POSTGRES_DB:-lucky_wheel}?schema=public
|
||||||
- PORT=${PORT:-3000}
|
- PORT=${PORT:-3000}
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
- REDIS_HOST=redis
|
- REDIS_HOST=redis
|
||||||
|
|||||||
Reference in New Issue
Block a user