2
0
Files
bot/docker-compose.yml

43 lines
1.2 KiB
YAML
Raw Normal View History

version: '3.9'
2021-11-29 15:19:07 +01:00
services:
typebot-db:
2021-11-29 15:19:07 +01:00
image: postgres:13
restart: always
volumes:
- db_data:/var/lib/postgresql/data
2021-12-06 15:48:50 +01:00
environment:
- POSTGRES_DB=typebot
- POSTGRES_PASSWORD=typebot
typebot-builder:
image: baptistearno/typebot-builder:latest
build:
context: .
args:
- SCOPE=builder
restart: always
depends_on:
- db
ports:
- '8080:3000'
extra_hosts:
- 'host.docker.internal:host-gateway'
# See https://docs.typebot.io/self-hosting/configuration for more configuration options
environment:
- DATABASE_URL=postgresql://postgres:typebot@typebot-db:5432/typebot
- NEXTAUTH_URL=<your-builder-url>
- NEXT_PUBLIC_VIEWER_URL=<your-viewer-url>
- ENCRYPTION_SECRET=<your-encryption-secret>
- ADMIN_EMAIL=<your-admin-email>
typebot-viewer:
image: baptistearno/typebot-viewer:latest
restart: always
ports:
- '8081:3000'
# See https://docs.typebot.io/self-hosting/configuration for more configuration options
environment:
- DATABASE_URL=postgresql://postgres:typebot@typebot-db:5432/typebot
- NEXT_PUBLIC_VIEWER_URL=<your-viewer-url>
- ENCRYPTION_SECRET=<your-encryption-secret>
2021-11-29 15:19:07 +01:00
volumes:
db_data: