1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-06-26 11:16:27 +02:00
docs/building-with-ocean/deploying-components/deploying-marketplace.md

47 lines
841 B
Markdown
Raw Normal View History

# Deploying Marketplace
### Prerequisites
2022-07-25 20:32:13 +02:00
* A server for hosting Aquarius. See [this guide](setup-server.md) on creating a server.
2022-07-25 20:32:13 +02:00
#### Create a directory
```
mkdir my-marketplace
cd my-marketplace
```
### Create file with name \`.env\`
Copy the below content into the \`.env\` file.
{% code title=".env" %}
```
2022-07-05 12:41:58 +02:00
DB_USERNAME=username
DB_PASSWORD=password
2022-07-25 20:32:13 +02:00
Build a Marketplace container
```
{% endcode %}
#### Create a \`Dockerfile\` file and copy the below content into it.
{% code title="Dockerfile" %}
```
FROM node:16
RUN git clone https://github.com/oceanprotocol/market.git /usr/app/market
WORKDIR /usr/app/market
RUN npm ci --legacy-peer-deps
RUN npm run build
EXPOSE 3000
CMD ["npx", "next", "start"]
```
{% endcode %}
2022-07-05 12:41:58 +02:00
Build a docker image
2022-07-05 12:41:58 +02:00
```bash
docker build . -f Dockerfile -t market:latest
```
### Start the marketplace