mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-05 21:04:43 +08:00
42 lines
878 B
YAML
42 lines
878 B
YAML
version: '3.9'
|
|
services:
|
|
typebot-db:
|
|
image: postgres:16
|
|
restart: always
|
|
volumes:
|
|
- ${PWD}/.typebot-build/database:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_DB=typebot
|
|
- POSTGRES_PASSWORD=typebot
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
typebot-builder:
|
|
build:
|
|
context: .
|
|
args:
|
|
- SCOPE=builder
|
|
depends_on:
|
|
typebot-db:
|
|
condition: service_healthy
|
|
restart: always
|
|
ports:
|
|
- '8080:3000'
|
|
extra_hosts:
|
|
- 'host.docker.internal:host-gateway'
|
|
env_file: .env.docker
|
|
typebot-viewer:
|
|
build:
|
|
context: .
|
|
args:
|
|
- SCOPE=viewer
|
|
depends_on:
|
|
typebot-db:
|
|
condition: service_healthy
|
|
restart: always
|
|
ports:
|
|
- '8081:3000'
|
|
env_file: .env.docker
|