diff --git a/Dockerfile b/Dockerfile index b8dd631..fada134 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,5 +32,8 @@ COPY --from=builder /app/.next/server ./.next/server # Expose the application port EXPOSE 3000 +# Set environment variables +ENV HOSTNAME=0.0.0.0 PORT=3000 + # Start the application CMD ["node", "server.js"] diff --git a/docker-compose.yml b/docker-compose.yml index e2a6835..d0f22cd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,7 +8,6 @@ services: - "3000:3000" restart: unless-stopped environment: - - NEXT_PUBLIC_HOST=bitmagnet-next-web - POSTGRES_DB_URL=postgres://postgres:postgres@postgres:5432/bitmagnet # - POSTGRES_HOST=postgres # - POSTGRES_PASSWORD=postgres