ToolJet/deploy/docker/docker-compose.yaml
Ashish 2c59616b70
Feature: docker-compose deployment (#388)
* separate dockerfile for tooljet client in development mode

* production dockerfile for tooljet client

* reference the tooljet clients dev dockerfile in the docker-compose file

* use a fallback url for API_URL in cases where TOOLJET_SERVER_URL is not defined

* nginx config file for the front-end

* docker-compose file for production deploys

* dont run postgres inside docker-compose

* use an entrypoint script for setting the server host for nginx

* separate volume for fallback certs

* add docs for docker-compose deployment

* add required database keys in the .env.example file

* address review comments
2021-07-12 14:45:42 +05:30

35 lines
693 B
YAML

version: '3'
services:
client:
tty: true
stdin_open: true
image: tooljet/tooljet-client-ce:latest
restart: always
depends_on:
- server
volumes:
- logs:/var/log/openresty/
- certs:/etc/resty-auto-ssl/
- fallbackcerts:/etc/fallback-certs
ports:
- 80:80
- 443:443
command: openresty -g "daemon off;"
server:
image: tooljet/tooljet-server-ce:latest
tty: true
stdin_open: true
restart: always
ports:
- 3000
env_file: .env
environment:
RAILS_LOG_TO_STDOUT: "true"
command: ["bundle", "exec", "rails", "s", "-p", "3000", "-b", "0.0.0.0"]
volumes:
certs:
logs:
fallbackcerts: