Files
nocodb/packages/noco-docs/docs/020.getting-started/050.self-hosted/010.installation/020.docker-install.md
2024-09-03 21:12:00 +05:30

1.8 KiB

title, description, tags, keywords
title description tags keywords
Docker Docker installation - takes about three minutes!
Open Source
NocoDB installation
NocoDB docker installation
NocoDB prerequisites

Docker installation - takes about three minutes!

Docker provides an easy way to install and run NocoDB. Follow these steps to get NocoDB up and running using Docker.

Prerequisites

Installation Steps

  1. Choose your preferred database:
docker run -d --name nocodb \
-v "$(pwd)"/nocodb:/usr/app/data/ \
-p 8080:8080 \
nocodb/nocodb:latest
docker run -d --name nocodb-postgres \
-v "$(pwd)"/nocodb:/usr/app/data/ \
-p 8080:8080 \
-e NC_DB="pg://host.docker.internal:5432?u=root&p=password&d=d1" \
-e NC_AUTH_JWT_SECRET="569a1821-0a93-45e8-87ab-eb857f20a010" \
nocodb/nocodb:latest
  1. Once the container is running, you can access NocoDB by opening http://localhost:8080 in your web browser.

:::tip To persist data, always mount a volume at /usr/app/data/. Without this, your data will be lost when the container is removed.

For versions prior to 0.10.6, mount the volume at /usr/src/app.

:::

Troubleshooting

  • If you can't access NocoDB after installation, check if the Docker container is running:
docker ps
  • If the container is not running, check the logs for any errors:
docker logs nocodb

Installation Video