2022-06-27 16:24:08 +02:00
|
|
|
version: '3.3'
|
2021-11-29 15:19:07 +01:00
|
|
|
services:
|
2022-05-25 08:13:35 -07:00
|
|
|
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:
|
2022-03-12 07:53:37 +01:00
|
|
|
- POSTGRES_DB=typebot
|
|
|
|
- POSTGRES_PASSWORD=typebot
|
2022-05-25 08:13:35 -07:00
|
|
|
typebot-builder:
|
|
|
|
image: baptistearno/typebot-builder:latest
|
|
|
|
restart: always
|
|
|
|
depends_on:
|
2022-05-30 05:49:18 -04:00
|
|
|
- typebot-db
|
2022-03-02 17:35:57 +01:00
|
|
|
ports:
|
2022-03-12 07:53:37 +01:00
|
|
|
- '8080:3000'
|
2022-03-29 08:45:20 +02:00
|
|
|
extra_hosts:
|
|
|
|
- 'host.docker.internal:host-gateway'
|
2023-05-17 11:35:32 +02:00
|
|
|
# See https://docs.typebot.io/self-hosting/configuration/builder for more configuration options
|
2022-05-25 08:13:35 -07:00
|
|
|
environment:
|
|
|
|
- DATABASE_URL=postgresql://postgres:typebot@typebot-db:5432/typebot
|
2022-05-30 16:40:13 +02:00
|
|
|
- NEXTAUTH_URL=<your-builder-url>
|
|
|
|
- NEXT_PUBLIC_VIEWER_URL=<your-viewer-url>
|
|
|
|
- ENCRYPTION_SECRET=<your-encryption-secret>
|
|
|
|
- ADMIN_EMAIL=<your-admin-email>
|
2022-05-25 08:13:35 -07:00
|
|
|
typebot-viewer:
|
|
|
|
image: baptistearno/typebot-viewer:latest
|
2022-03-12 07:53:37 +01:00
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- '8081:3000'
|
2023-05-17 11:35:32 +02:00
|
|
|
# See https://docs.typebot.io/self-hosting/configuration/viewer for more configuration options
|
2022-05-25 08:13:35 -07:00
|
|
|
environment:
|
|
|
|
- DATABASE_URL=postgresql://postgres:typebot@typebot-db:5432/typebot
|
2022-05-30 16:40:13 +02:00
|
|
|
- NEXT_PUBLIC_VIEWER_URL=<your-viewer-url>
|
|
|
|
- ENCRYPTION_SECRET=<your-encryption-secret>
|
2023-05-17 11:35:32 +02:00
|
|
|
- NEXTAUTH_URL=<your-builder-url>
|
2021-11-29 15:19:07 +01:00
|
|
|
volumes:
|
|
|
|
db_data:
|