ToolJet/deploy/docker/docker-compose-db.yaml

51 lines
944 B
YAML
Raw Normal View History

2022-03-04 02:30:47 +00:00
version: '3'
services:
tooljet:
2022-03-04 02:30:47 +00:00
tty: true
stdin_open: true
container_name: Tooljet-app
image: tooljet/tooljet-ce:latest
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}
2022-03-04 02:30:47 +00:00
image: postgres:13
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
postgrest:
container_name: postgrest
image: postgrest/postgrest:v10.1.1.20221215
restart: always
depends_on:
- postgres
env_file: .env
environment:
- PGRST_SERVER_PORT=80
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: