mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-29 01:17:24 +00:00
* 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
35 lines
693 B
YAML
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:
|