On going project for own used
This project includes a Docker configuration for local development and production deployment (e.g., Google Cloud Run).
To run the application locally using Docker Compose:
docker-compose up --buildThe application will be available at http://localhost:8080.
The Dockerfile is configured to listen on port 8080, which is the default for Cloud Run.
-
Build and Push the Docker image:
gcloud builds submit --tag gcr.io/PROJECT-ID/malaysia-city
Replace
PROJECT-IDwith your Google Cloud project ID. -
Deploy to Cloud Run:
gcloud run deploy malaysia-city \ --image gcr.io/PROJECT-ID/malaysia-city \ --platform managed \ --region us-central1 \ --allow-unauthenticated
Or deploy from source directly:
gcloud run deploy malaysia-city --source .