Skip to content

Add Docker configurations and custom port support#2

Draft
AndreyNovaes wants to merge 1 commit intomainfrom
add-docker-compose-configs
Draft

Add Docker configurations and custom port support#2
AndreyNovaes wants to merge 1 commit intomainfrom
add-docker-compose-configs

Conversation

@AndreyNovaes
Copy link
Owner

This PR adds Docker configurations for both development and production environments, along with support for custom ports.

Changes include:

  • Added docker-compose.dev.yml for development environment
  • Added docker-compose.prod.yml for production environment
  • Added Dockerfile.dev and Dockerfile.prod
  • Added support for custom port configuration via PORT environment variable
  • Updated package.json scripts to support custom ports

How to use:

  1. Development:
# Default port (3000)
docker-compose -f docker-compose.dev.yml up --build

# Custom port
PORT=8080 docker-compose -f docker-compose.dev.yml up --build
  1. Production:
# Default port (3000)
docker-compose -f docker-compose.prod.yml up --build

# Custom port
PORT=8080 docker-compose -f docker-compose.prod.yml up --build

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.

2 participants