Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 890 Bytes

DOCKER.md

File metadata and controls

28 lines (23 loc) · 890 Bytes

🐳 Docker Deployment

The project can be run using Docker. Make sure you have Docker installed on your system.

  1. Build the image and run the container:
docker build -t hyperfydemo . && docker run -d -p 3000:3000 \
  -v "$(pwd)/src:/app/src" \
  -v "$(pwd)/world:/app/world" \
  -v "$(pwd)/.env:/app/.env" \
  -e DOMAIN=demo.hyperfy.host \
  -e PORT=3000 \
  -e ASSETS_DIR=/world/assets \
  -e PUBLIC_WS_URL=https://demo.hyperfy.host/ws \
  -e PUBLIC_API_URL=https://demo.hyperfy.host/api \
  -e PUBLIC_ASSETS_URL=https://demo.hyperfy.host/assets \
  hyperfydemo

This command:

  • Builds the Docker image tagged as 'hyperfydemo'
  • Mounts local src/, world/ directories and .env file into the container
  • Exposes port 3000
  • Sets up required environment variables
  • Runs the container in detached mode (-d)

Note: Adjust the URLs and domain according to your specific setup.