change deault host to db instead of HOST

This commit is contained in:
fzorb 2025-02-09 18:14:37 +02:00
parent fca09ae87a
commit 3caa222e2a
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ WORKDIR /app
COPY . /app
ENV MIX_ENV=prod
ENV DATABASE_URL=ecto://USER:PASS@HOST/database
ENV DATABASE_URL=ecto://pg_user:pg_pass@db/database
ENV SECRET_KEY_BASE=ChangeME
RUN mix deps.get --only prod

View File

@ -5,7 +5,7 @@ services:
- "4000:4000"
environment:
- MIX_ENV=prod
- DATABASE_URL=ecto://pg_user:pg_pass@HOST/database
- DATABASE_URL=ecto://pg_user:pg_pass@db/database
- SECRET_KEY_BASE=ChangeME
resart: unless-stopped
depends_on: