Instalação Typebot
Atualizado
version: "3.7"
services:
postgres:
container_name: postgresqltypebot
image: postgres:17.2
restart: always
environment:
- POSTGRES_PASSWORD=Admin33Admin77
networks:
- typebot_rede
#ports:
# - 5432:5432
volumes:
- postgres_typebot:/var/lib/postgresql/data
deploy:
mode: replicated
replicas: 1
placement:
constraints:
- node.role == manager
resources:
limits:
cpus: "0.5"
memory: 1024M
volumes:
postgres_typebot:
external: false
name: postgres_typebot
networks:
typebot_rede:
external: false
name: typebot_redeversion: "3.7"
services:
minio:
container_name: miniotypebot
image: minio/minio
restart: always
command: server /data --console-address ":9001"
networks:
- typebot_rede
ports:
- 32771:9000
- 32772:9001
volumes:
- minio_data:/data
environment:
- MINIO_ROOT_USER=rodnei
- MINIO_ROOT_PASSWORD=Admin33Admin77
- MINIO_BROWSER_REDIRECT_URL=https://minios3.webconfiavel.com.br
- MINIO_SERVER_URL=https://s3.webconfiavel.com.br
deploy:
mode: replicated
replicas: 1
placement:
constraints:
- node.role == manager
volumes:
minio_data:
external: false
name: minio_data
networks:
typebot_rede:
external: false
name: typebot_redesudo nano /etc/caddy/Caddyfileminios3.webconfiavel.com.br {
reverse_proxy 127.0.0.1:32772
request_body {
max_size 200MB
}
}
s3.webconfiavel {
reverse_proxy 127.0.0.1:32771
request_body {
max_size 200MB
}
}sudo systemctl restart caddyversion: "3.7"
services:
typebot_viewer:
container_name: typebotviewer
image: baptistearno/typebot-viewer:latest
restart: always
networks:
- typebot_rede
ports:
- 8081:3000
environment:
- DATABASE_URL=postgresql://postgres:Admin33Admin77@postgres:5432/postgres
- ENCRYPTION_SECRET=7Rl2NKGhkMUHRV0dtRg8hD2YNopCrAeH
- DEFAULT_WORKSPACE_PLAN=UNLIMITED
- NEXTAUTH_URL=https://chatbot.webconfiavel.com.br
- NEXT_PUBLIC_VIEWER_URL=https://chatbotapi.webconfiavel.com.br
- NEXTAUTH_URL_INTERNAL=http://localhost:3000
- DISABLE_SIGNUP=true
- ADMIN_EMAIL=sourodmil@gmail.com
- NEXT_PUBLIC_SMTP_FROM='RWeb Tec' <sourodmil@gmail.com>
- SMTP_AUTH_DISABLED=false
- SMTP_USERNAME=sourodmil@gmail.com
- SMTP_PASSWORD=pfuvqidfkyhtaxtx
- SMTP_HOST=smtp.gmail.com
- SMTP_PORT=465
- SMTP_SECURE=false
# Configurações do Typebot e Google Cloud
#- GOOGLE_CLIENT_ID=
#- GOOGLE_CLIENT_SECRET=
# Configurações do Typebot e Minio
- S3_ACCESS_KEY=0euO7HOE7NTM6PmS6loK
- S3_SECRET_KEY=kGED9FHLuBFYLzFGwRkHy1SLAh7oSuKcfXzCfeyt
- S3_BUCKET=typebot
- S3_ENDPOINT=s3.webconfiavel.com.br
deploy:
mode: replicated
replicas: 1
placement:
constraints:
- node.role == manager
resources:
limits:
cpus: "1"
memory: 1024M
networks:
typebot_rede:
external: false
name: typebot_redeversion: "3.7"
services:
typebot_builder:
container_name: typebotbuilder
image: baptistearno/typebot-builder:latest
restart: always
networks:
- typebot_rede
ports:
- 8082:3000
environment:
- DATABASE_URL=postgresql://postgres:Admin33Admin77@postgres:5432/postgres
- ENCRYPTION_SECRET=7Rl2NKGhkMUHRV0dtRg8hD2YNopCrAeH
- DEFAULT_WORKSPACE_PLAN=UNLIMITED
- NEXTAUTH_URL=https://chatbot.webconfiavel.com.br
- NEXT_PUBLIC_VIEWER_URL=https://chatbotapi.webconfiavel.com.br
- NEXTAUTH_URL_INTERNAL=http://localhost:3000
- DISABLE_SIGNUP=true
- ADMIN_EMAIL=sourodmil@gmail.com
- NEXT_PUBLIC_SMTP_FROM='RWeb Tec' <sourodmil@gmail.com>
- SMTP_AUTH_DISABLED=false
- SMTP_USERNAME=sourodmil@gmail.com
- SMTP_PASSWORD=pfuvqidfkyhtaxtx
- SMTP_HOST=smtp.gmail.com
- SMTP_PORT=465
- SMTP_SECURE=false
# Configurações do Typebot e Google Cloud
#- GOOGLE_CLIENT_ID=
#- GOOGLE_CLIENT_SECRET=
# Configurações do Typebot e Minio
- S3_ACCESS_KEY=0euO7HOE7NTM6PmS6loK
- S3_SECRET_KEY=kGED9FHLuBFYLzFGwRkHy1SLAh7oSuKcfXzCfeyt
- S3_BUCKET=typebot
- S3_ENDPOINT=s3.webconfiavel.com.br
deploy:
mode: replicated
replicas: 1
placement:
constraints:
- node.role == manager
resources:
limits:
cpus: "1"
memory: 1024M
networks:
typebot_rede:
external: false
name: typebot_redesudo nano /etc/caddy/Caddyfilechatbotapi.webconfiavel.com.br {
reverse_proxy 127.0.0.1:8081
request_body {
max_size 200MB
}
}
chatbot.webconfiavel.com.br {
reverse_proxy 127.0.0.1:8082
request_body {
max_size 200MB
}
}sudo systemctl restart caddydocker network connect bridge miniotypebotdocker network connect bridge typebotbuilderdocker network connect bridge typebotviewer