Skip to content

Conversation

@keebOo
Copy link

@keebOo keebOo commented Oct 7, 2025

Changes

  • Added env_file: - .env to load environment variables from .env file
  • Changed port mapping from hardcoded 3000:3000 to ${PORT:-3000}:${PORT:-3000}
  • This allows users to customize the port via the PORT environment variable
  • Maintains backward compatibility with default port 3000

Benefits

  • More flexible port configuration
  • Consistent with the existing PORT environment variable support
  • Follows Docker Compose best practices for environment variable usage

- Add env_file: .env to load environment variables
- Use ${PORT:-3000} for port mapping instead of hardcoded 3000
- Maintains backward compatibility with default port 3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant