1. Install Docker

Untitled

Follow the instruction on how to Install Docker on their official instruction website. Click this link: the official instructions.

2. Obtain docker-compose.yml

curl -O <https://raw.githubusercontent.com/reearth/reearth/main/docker-compose.yml>

Untitled

In this example, we have two services defined: web and db. The web service builds an image from the current directory (.) and maps port 8000 from the host to port 8000 in the container. It also mounts the current directory as a volume inside the container at /app. The depends_on option ensures that the db service is started before the web service.

The db service uses the mysql:5.7 image and sets some environment variables for configuration. It also mounts a volume named dbdata to persist the MySQL data.

You can modify this docker-compose.yml file to fit your specific application and service requirements.

3. Set up environment variables (optional)

Click on this Link to know How to configure Re-Earth if needed.

4. Run Re-Earth

docker compose up -d

Once running, access http://localhost:8080 with your web browser (only when Re-Earth is running in integrated mode).

If Re-Earth doesn't start, check to see if port 8080 is already in use by another application.

INFORMATION

docker-compose command has been replaced to docker compose command. It is no longer necessary to install docker-compose separately.