ToolJet/deploy/docker/docker-compose-with-built-in-postgresql/docker-compose.yaml

42 lines
767 B
YAML
Raw Normal View History

2024-02-27 15:05:31 +00:00
version: "3"
2022-03-04 02:30:47 +00:00
services:
tooljet:
2022-03-04 02:30:47 +00:00
tty: true
stdin_open: true
container_name: Tooljet-app
image: tooljet/tooljet-ce:ce-lts-latest
platform: linux/amd64
2022-03-04 02:30:47 +00:00
restart: always
env_file: .env
ports:
- 80:80
depends_on:
- postgres
environment:
SERVE_CLIENT: "true"
PORT: "80"
command: npm run start:prod
2022-03-04 02:30:47 +00:00
postgres:
container_name: ${PG_HOST}
image: postgres:16
2022-03-04 02:30:47 +00:00
restart: always
volumes:
- postgres:/var/lib/postgresql/data
env_file: .env
2022-03-04 02:30:47 +00:00
environment:
- POSTGRES_USER=${PG_USER}
- POSTGRES_PASSWORD=${PG_PASS}
2022-03-04 02:30:47 +00:00
volumes:
postgres:
driver: local
driver_opts:
o: bind
type: none
device: ${PWD}/postgres_data
certs:
logs:
fallbackcerts: