2022-05-25 08:13:35 -07:00
|
|
|
version: '3.9'
|
|
|
|
services:
|
|
|
|
typebot-db:
|
|
|
|
image: postgres:13
|
|
|
|
restart: always
|
|
|
|
volumes:
|
2022-06-22 07:36:11 +02:00
|
|
|
- build_db_data:/var/lib/postgresql/data
|
2022-05-25 08:13:35 -07:00
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=typebot
|
|
|
|
- POSTGRES_PASSWORD=typebot
|
|
|
|
typebot-builder:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
|
|
|
- SCOPE=builder
|
|
|
|
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=http://localhost:8080
|
|
|
|
- NEXT_PUBLIC_VIEWER_URL=http://localhost:8081
|
|
|
|
- ENCRYPTION_SECRET=SgVkYp2s5v8y/B?E(H+MbQeThWmZq4t6
|
|
|
|
- ADMIN_EMAIL=me@email.com
|
|
|
|
- NEXTAUTH_URL_INTERNAL=http://host.docker.internal:8080
|
2022-12-02 17:42:18 +01:00
|
|
|
- GITHUB_CLIENT_ID=37a279454d016598c2df
|
|
|
|
- GITHUB_CLIENT_SECRET=4b288a509352b591cd4478e3ac901668b2f8ed03
|
2022-05-25 08:13:35 -07:00
|
|
|
typebot-viewer:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
|
|
|
- SCOPE=viewer
|
|
|
|
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=http://localhost:8081
|
|
|
|
- ENCRYPTION_SECRET=SgVkYp2s5v8y/B?E(H+MbQeThWmZq4t6
|
|
|
|
volumes:
|
2022-06-22 07:36:11 +02:00
|
|
|
build_db_data:
|