2022-03-04 02:30:47 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
client:
|
|
|
|
|
tty: true
|
|
|
|
|
stdin_open: true
|
|
|
|
|
image: tooljet/tooljet-client-ce:latest
|
|
|
|
|
restart: always
|
|
|
|
|
env_file: .env
|
|
|
|
|
depends_on:
|
|
|
|
|
- server
|
|
|
|
|
volumes:
|
|
|
|
|
- logs:/var/log/openresty/
|
|
|
|
|
- certs:/etc/resty-auto-ssl/
|
|
|
|
|
- fallbackcerts:/etc/fallback-certs
|
2022-08-12 02:29:53 +00:00
|
|
|
# - /replace_path_here/nginx.conf.template:/etc/openresty/nginx.conf.template
|
2022-03-04 02:30:47 +00:00
|
|
|
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:
|
|
|
|
|
SERVE_CLIENT: "false"
|
|
|
|
|
command: npm run start:prod
|
|
|
|
|
depends_on:
|
|
|
|
|
- postgres
|
|
|
|
|
|
|
|
|
|
postgres:
|
|
|
|
|
image: postgres:13
|
|
|
|
|
restart: always
|
|
|
|
|
ports:
|
|
|
|
|
- 5432:5432
|
|
|
|
|
volumes:
|
|
|
|
|
- postgres:/var/lib/postgresql/data
|
|
|
|
|
environment:
|
|
|
|
|
- POSTGRES_PASSWORD=postgres
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
postgres:
|
|
|
|
|
driver: local
|
|
|
|
|
driver_opts:
|
|
|
|
|
o: bind
|
|
|
|
|
type: none
|
|
|
|
|
device: ${PWD}/postgres_data
|
|
|
|
|
certs:
|
|
|
|
|
logs:
|
|
|
|
|
fallbackcerts:
|