Skip to main content

Deploying ToolJet using docker-compose

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


If you rather want to try out ToolJet locally with docker, you can follow the steps here.

  1. 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
  2. Install docker and docker-compose on the server.

  3. Setup a PostgreSQL database and make sure that the database is accessible. (Optional)


    We recommend to use managed postgres service on production for ease of administration, security and management (backups, monitoring etc). If you'd want to run posgres with persistent volume rather, curl for the alternate docker compose file shared in the next step.

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

    For managed PostgreSQL database:

    curl -LO


    For PostgreSQL database setup with persistent volume:

    curl -LO
    mv docker-compose-postgres.yaml docker-compose.yaml
    mkdir postgres_data
  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://


    If there are self signed HTTPS endpoints that Tooljet needs to connect to, please make sure that NODE_EXTRA_CA_CERTS environment variable is set to the absolute path containing the certificates.

  6. 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

  7. 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.

  8. 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
  9. You're all done, ToolJet client would now be served at the URL you've set in TOOLJET_HOST.