Deploy a Marketplace


  • A server for hosting Ocean Marketplace. See this guide on creating a server.

  • Obtain API key for wanted network. See this guide for this.

Push your customized Ocean Market code to your Git repository

In case you customized the Ocean Market using the tutorial from this chapter (link), push your code to a Git repository.

Create a directory

mkdir my-marketplace
cd my-marketplace

Create a file with the name `.env`

If you already created the .env file as instructed in ...(link to customize the market chapter), you can skip this step, otherwise copy the below content into the `.env` file.

# Update this value if your Market should use custom Aquarius 

# Provide INFURA project ID from the obtained API key for NEXT_PUBLIC_INFURA_PROJECT_ID


# Toggle pricing options presented during price creation

# Privacy Preference Center

Create a `Dockerfile` file and copy the below content into it.

In the following Dockerfile, replace <YOUR_GIT_REPO_URL> with the url of your Ocean Market fork repository or use "" if you want to deploy the standard image of Ocean Market.

FROM node:16
RUN git clone <YOUR_GIT_REPO_URL> /usr/app/market
WORKDIR /usr/app/market
RUN npm ci --legacy-peer-deps
RUN npm run build
CMD ["npx", "next", "start"]

Build a docker image

docker build . -f Dockerfile -t market:latest

Start the marketplace

docker start market

Last updated


Copyright 2024 Ocean Protocol Foundation Ltd.