morphic icon indicating copy to clipboard operation
morphic copied to clipboard

Could you please provide a Docker Compose YAML file?

Open GuGuGee opened this issue 1 year ago • 4 comments

I want to deploy it on my own server. Thanks!

GuGuGee avatar Apr 24 '24 07:04 GuGuGee

I've done something like this in my fork. Allows for the UI to be accessed via my NordVPN mesh network, hopefully it's helpful to you! https://github.com/andrewginns/morphic

andrewginns avatar May 04 '24 14:05 andrewginns

@andrewginns can you also provide a simple compose file without Nord?

arsaboo avatar May 04 '24 15:05 arsaboo

@miurla I understand you have the dockerfile, but it will be great if you can provide a compose file for folks to get started...thanks!

arsaboo avatar May 04 '24 15:05 arsaboo

Here's one that works:

version: "3.7"
services:
  morphic:
    build:
      context: .
      dockerfile: Dockerfile
    command: bun dev
    env_file: .env
    ports:
      - "3008:3000"

If you want to access it on the entire network, change the command to bun dev -H 0.0.0.0

arsaboo avatar May 04 '24 18:05 arsaboo

I added a generic docker-compose.yaml file in a PR here https://github.com/miurla/morphic/pull/131#issue-2289434476

# This is a Docker Compose file for setting up the morphic-stack environment.

name: morphic-stack
services:
  morphic:
    build:
      context: . # The build context is the current directory
      dockerfile: Dockerfile
    command: bun dev # Use `bun dev -H 0.0.0.0` to listen on all interfaces
    env_file: .env.local # Load environment variables
    ports:
      - "3000:3000" # Maps port 3000 on the host to port 3000 in the container.

andrewginns avatar May 10 '24 10:05 andrewginns