Any SQL – Jet Bridge Docker

In order to install Jet Admin on your project please follow this guide: https://app.jetadmin.io/projects/create

This documentation contains only Jet Bridge step detailed description.

Install Jet Bridge without need to install any dependencies except Docker application. May require additional network configuration for your OS.

Jet Bridge has Docker image available on Docker Hub. In order start it inside Docker for your configuration run the following command. You can read about all possible settings at Configuration page.

Requirements

  • Docker installed

  • localhost or web server with external IP

Installation

  1. Follow this guide to create project: https://app.jetadmin.io/projects/create

  2. Install Docker if you don't have it https://docs.docker.com/install/

  3. Make sure Docker is running

  4. Update Jet Bridge image if downloaded it before

docker pull jetadmin/jetbridge

5. Run Docker container with specified configuration. This will run Jet Bridge on http://localhost:8888/. Choose DATABASE_HOST according to your platform, this address should be accessible inside Docker container (you may need to search how to implement that on your platform). Here is an example for macOS:

If you want to run on different port change it here: ... -p 9000:8888 ... – this will run on 9000

docker run -p 8888:8888 \
-e DATABASE_ENGINE=postgresql \
-e DATABASE_HOST=host.docker.internal \
-e DATABASE_PORT=5432 \
-e DATABASE_NAME=database \
-e DATABASE_USER=postgres \
-e DATABASE_PASSWORD=password \
-v $(pwd)/jet_media:/jet/media \
--restart always \
--name jet_bridge \
jetadmin/jetbridge

If you want to run SQLite:

docker run -p 8888:8888 \
-e DATABASE_ENGINE=sqlite \
-e DATABASE_HOST= \
-e DATABASE_PORT= \
-e DATABASE_NAME=/jet/database.db \
-e DATABASE_USER= \
-e DATABASE_PASSWORD= \
-v $(pwd)/jet_media:/jet/media \
-v FULL_PATH_TO_YOUR_DATABASE:/jet/database.db \
--restart always \
--name jet_bridge \
jetadmin/jetbridge

If you are using Docker before 18.03 you can't use host.docker.internal for DATABASE_HOST Docker 17.12 – 18.02 use docker.for.mac.host.internal Docker 17.06 – 17.11 use docker.for.mac.localhost Docker 17.05 and below your local host IP address (can be found using ifconfig command)

6. You will see Jet Admin token in the console output which you should enter on Project Create page. If you want to display Jet Admin token manually, use the following command:

docker exec -it jet_bridge jet_bridge token

7. Finish your project installation by opening in your browser: http://localhost:8888/api/register/ where localhost is your Jet Bridge HOST and 8888 is its PORT.

If you don't have Jet account yet you will be asked to create one and sign in with the existing account.

After registering your project you will be redirected to your project and can start working with Jet

Common problems