🐳 Server listening on 0.0.0.0

This commit is contained in:
journey-ad 2024-06-21 23:51:45 +08:00
parent 6b4150d960
commit 1981a093ce
2 changed files with 3 additions and 1 deletions

View File

@ -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"]

View File

@ -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