48 lines
1,012 B
YAML
48 lines
1,012 B
YAML
services:
|
|
tooljet:
|
|
tty: true
|
|
stdin_open: true
|
|
container_name: Tooljet-app
|
|
image: tooljet/tooljet-ce:latest
|
|
restart: always
|
|
env_file: .env
|
|
ports:
|
|
- 8001:80
|
|
deploy: # Please adjust the resource according to your usecase
|
|
# resources:
|
|
# limits:
|
|
# cpus: '1'
|
|
# memory: 2G
|
|
depends_on:
|
|
- postgres
|
|
environment:
|
|
SERVE_CLIENT: "true"
|
|
PORT: "80"
|
|
command: npm run start:prod
|
|
|
|
postgres:
|
|
container_name: ${PG_HOST}
|
|
image: postgres:13
|
|
restart: always
|
|
deploy: # Please adjust the resource according to your usecase
|
|
resources:
|
|
limits:
|
|
cpus: '2'
|
|
memory: 3G
|
|
volumes:
|
|
- postgres:/var/lib/postgresql/data
|
|
env_file: .env
|
|
environment:
|
|
- POSTGRES_USER=${PG_USER}
|
|
- POSTGRES_PASSWORD=${PG_PASS}
|
|
|
|
volumes:
|
|
postgres:
|
|
driver: local
|
|
driver_opts:
|
|
o: bind
|
|
type: none
|
|
device: ${PWD}/postgres_data
|
|
certs:
|
|
logs:
|
|
fallbackcerts:
|