Skip to main content

Deploying ToolJet using docker-compose


You should setup a PostgreSQL database manually to be used by the ToolJet server.

Follow the steps below to deploy ToolJet on a server using docker-compose. This setup will deploy both ToolJet server and ToolJet client.

  1. Setup a PostgreSQL database and make sure that the database is accessible.

  2. Make sure that the server can receive traffic on port 80, 443 and 22. For example, if the server is an AWS EC2 instance and the installation should receive traffic from the internet, the inbound rules of the security group should look like this:

    tcp22your IP
  3. Install docker and docker-compose on the server. Docker Installation Docker Compose Installation

  4. Download our production docker-compose file into the server by running:

     curl -LO
  5. Create .env file in the current directory (where the docker-compose.yaml file is downloaded):

       curl -LO
    mv .env.example .env

    Set up environment variables in .env file as explained in environment variables reference

TOOLJET_HOST environment variable can either be the public ipv4 address of your server or a custom domain that you want to use.


We use a lets encrypt plugin on top of nginx to create TLS certificates on the fly.



Please make sure that TOOLJET_HOST starts with either http:// or https://

  1. Once you've populated the .env file, run

       docker-compose up -d

    to start all the required services.


    If you're running on a linux server, docker might need sudo permissions. In that case you can either run: sudo docker-compose up -d OR Setup docker to run without root privileges by following the instructions written here

  2. If you've set a custom domain for TOOLJET_HOST, add a A record entry in your DNS settings to point to the IP address of the server.

  1. Seed the database:
    docker-compose run server npm run db:seed
    This seeds the database with a default user with the following credentials: email: password: password
  1. You're all done, ToolJet client would now be served at the URL you've set in TOOLJET_HOST.