mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-05 21:04:43 +08:00
41 lines
884 B
YAML
41 lines
884 B
YAML
services:
|
|
typebot-db-docker:
|
|
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-docker:
|
|
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-docker:
|
|
condition: service_healthy
|
|
restart: always
|
|
ports:
|
|
- "8081:3000"
|
|
env_file: .env.docker
|