mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-21 21:47:17 +00:00
* Add functionality to decide whether front-end should be served from server This commit makes the server allow flag `--serve-frontend`, providing which, will make the server serve the front-end at route '/'. Otherwise it won't serve the front-end. * Use env variable to enable serving client from a server end-point * Add documentation for SERVE_CLIENT env var
36 lines
708 B
YAML
36 lines
708 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"
|
|
SERVE_CLIENT: "false"
|
|
command: ['npm', 'run', '--prefix', 'server', 'start:prod']
|
|
|
|
volumes:
|
|
certs:
|
|
logs:
|
|
fallbackcerts:
|