Below steps will guide you through deploying Multiwoven on a server using Docker Compose. We require PostgreSQL database to store meta data for Multiwoven. We will use Docker Compose to deploy Multiwoven and PostgreSQL.
Note: If you are setting up Multiwoven on your local machine, you can skip this section and refer to
Local Setup section.
Prerequisites
All our Docker images are available in x86_64 architecture, make sure your server supports x86_64 architecture.
Deployment options
Multiwoven can be deployed using two different options for PostgreSQL database.
In-built PostgreSQL
Cloud PostgreSQL
- Create a new directory for Multiwoven and navigate to it.
mkdir multiwoven
cd multiwoven
- Download the production
docker-compose.yaml file from the following link.
curl -LO https://aiseepublicstorage.blob.core.windows.net/mw-public-main/docker-compose.yaml && echo "Downloaded docker-compose.yaml successfully" || echo "Failed to download docker-compose.yaml"
- Download the
.env.example file from the following link.
curl -LO https://aiseepublicstorage.blob.core.windows.net/mw-public-main/.env.example && echo "Downloaded .env.example successfully" || echo "Failed to download .env.example"
- Rename the file .env.example to .env and update the environment variables if required.
mv .env.example .env && cat .env
- Start the Multiwoven using the following command.
- Stopping Multiwoven
To stop the Multiwoven, use the following command.
- Upgrading Multiwoven
When a new version of Multiwoven is released, you can upgrade the Multiwoven using the following command.docker-compose pull && docker-compose up -d
Make sure to run the above command from the same directory where the docker-compose.yaml file is present.
-
Create a new directory for Multiwoven and navigate to it.
mkdir multiwoven
cd multiwoven
- Download the production
docker-compose.yaml file from the following link.
curl -LO https://aiseepublicstorage.blob.core.windows.net/mw-public-main/docker-compose.yaml && echo "Downloaded docker-compose.yaml successfully" || echo "Failed to download docker-compose.yaml"
- Rename the file .env.example to .env and update the PostgreSQL environment variables.
DB_HOST - Database Host
DB_USERNAME - Database Username
DB_PASSWORD - Database Password
The default port for PostgreSQL is 5432. If you are using a different port, update the DB_PORT environment variable.
mv .env.example .env && cat .env
- Start the Multiwoven using the following command.
Accessing Multiwoven
Once the Multiwoven is up and running, you can access it using the following URL and port.
Multiwoven Server URL:
Multiwoven UI Service:
If you are using a custom domain you can update the API_HOST and UI_HOST environment variable in the .env file.
Important considerations
-
Make sure to update the environment variables in the
.env file before starting the Multiwoven.
-
Make sure to take regular backups of the PostgreSQL database.
To restore the backup, you can use the following command.
cat dump.sql | docker exec -i --user postgres <postgres-container-name> psql -U postgres
- If you are using a custom domain, make sure to update the
API_HOST and UI_HOST environment variables in the .env file.