Fix: rename db -> fitness-db to avoid DNS collision with Coolify's postgres
ROOT CAUSE FOUND: 'db' resolved to multiple IPs on the Docker network. Coolify's own PostgreSQL (or another stack's) also responds to 'db' via the predefined network. Our backend was connecting to the WRONG postgres — one that requires password auth. Fix: rename service from 'db' to 'fitness-db' so the hostname is unique.
This commit is contained in:
parent
25d15c38ce
commit
434db38f0d
3 changed files with 6 additions and 8 deletions
|
|
@ -9,9 +9,7 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|||
|
||||
COPY . .
|
||||
|
||||
# Hardcode DB connection - trust auth, no password
|
||||
# This ensures correct connection regardless of Coolify env var handling
|
||||
ENV DATABASE_URL=postgresql+asyncpg://fitness@db:5432/fitness_rewards
|
||||
ENV DATABASE_URL=postgresql+asyncpg://fitness@fitness-db:5432/fitness_rewards
|
||||
ENV SECRET_KEY=8915f64daf616b1b1ea5cdc8242ec924adf263c045bef378d9cb880787ba4386
|
||||
ENV STRAVA_CLIENT_ID=211907
|
||||
ENV STRAVA_CLIENT_SECRET=d1e48251327a3760acd6dcf4129ec59350dc6b71
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue