miurla / morphic

An AI-powered search engine with a generative UI
https://morphic.sh
Apache License 2.0
6.04k stars 1.51k forks source link

feat: Add docker-compose file #131

Closed andrewginns closed 4 months ago

andrewginns commented 4 months ago

Overview

This pull request introduces a new Docker Compose configuration to streamline the setup and execution of the Morphic project for local development environments. The docker-compose.yml file follows the defaults set out in the current README.

Changes Introduced

Docker Compose File: A docker-compose.yml file has been added to the root of the project. This file defines the morphic service, specifying how it should be built and run:

The service is configured to run the command bun dev, aligning with the README.

Port forwarding is configurable but by default maps the container's port 3000 to localhost:3000.

Usage

  1. Ensure Docker and Docker Compose are installed on your system.
  2. Navigate to the root of the repository where the docker-compose.yml file is located.
  3. Copy .env.local.example to .env.local and set environment variable
  4. Run docker-compose up to build and start the application.
  5. Access the application at http://localhost:3000.

Testing

The Docker Compose setup has been tested locally to ensure that the application builds, runs, and is accessible at the expected port.

vercel[bot] commented 4 months ago

@andrewginns is attempting to deploy a commit to the morphic Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] commented 4 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
morphic ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 10, 2024 10:21am
andrewginns commented 4 months ago

Happy to help! Thanks for your great project ❤️