.env
· 1.1 KiB · Bash
Ham
# Secret key for encryption
ENCRYPTION_SECRET=KPOUyIj9sZIafK2s+M61IDQOT5e6bYC6
# PostgreSQL connection string
DATABASE_URL=postgresql://postgres:typebot@typebot-db:5432/typebot
# Optimize Node.js memory usage
NODE_OPTIONS=--no-node-snapshot
# Typebot URLs
# NEXTAUTH_URL=http://localhost:8080
# NEXTAUTH_URL=http://192.168.42.125:8080
NEXTAUTH_URL=https://typebot.lotimmy.com/
NEXT_PUBLIC_VIEWER_URL=http://localhost:8081
# Authentication settings
NEXTAUTH_SECRET=1sHGd7/dj2ex5utL9ii+sjITsZk8NeTYqmxktK+FjTQ=
ADMIN_EMAIL=admin@example.com
AUTH_EMAIL=true
# SMTP settings for email verification
SMTP_HOST=192.168.42.107 # Change this to your SMTP server
SMTP_PORT=1025 # Use 465 for SSL, 587 for TLS, 25 for non-encrypted
NEXT_PUBLIC_SMTP_FROM="Typebot Notifications <your-email@example.com>"
SMTP_SECURE=false # Set to true for SSL
SMTP_USERNAME=none
SMTP_PASSWORD=none
S3_ENDPOINT=192.168.42.125
S3_PORT=9000
S3_SSL=false
S3_REGION=us-east-1
S3_BUCKET=typebot-storage
S3_ACCESS_KEY=minioAdmin
S3_SECRET_KEY=G0dM!nS3cr3t2025
ENABLE_PAYMENTS=false
# Disable third-party logins
AUTH_GOOGLE=false
AUTH_GITHUB=false
AUTH_FACEBOOK=false
| 1 | # Secret key for encryption |
| 2 | ENCRYPTION_SECRET=KPOUyIj9sZIafK2s+M61IDQOT5e6bYC6 |
| 3 | |
| 4 | # PostgreSQL connection string |
| 5 | DATABASE_URL=postgresql://postgres:typebot@typebot-db:5432/typebot |
| 6 | |
| 7 | # Optimize Node.js memory usage |
| 8 | NODE_OPTIONS=--no-node-snapshot |
| 9 | |
| 10 | # Typebot URLs |
| 11 | # NEXTAUTH_URL=http://localhost:8080 |
| 12 | # NEXTAUTH_URL=http://192.168.42.125:8080 |
| 13 | NEXTAUTH_URL=https://typebot.lotimmy.com/ |
| 14 | NEXT_PUBLIC_VIEWER_URL=http://localhost:8081 |
| 15 | |
| 16 | # Authentication settings |
| 17 | NEXTAUTH_SECRET=1sHGd7/dj2ex5utL9ii+sjITsZk8NeTYqmxktK+FjTQ= |
| 18 | ADMIN_EMAIL=admin@example.com |
| 19 | AUTH_EMAIL=true |
| 20 | |
| 21 | # SMTP settings for email verification |
| 22 | SMTP_HOST=192.168.42.107 # Change this to your SMTP server |
| 23 | SMTP_PORT=1025 # Use 465 for SSL, 587 for TLS, 25 for non-encrypted |
| 24 | NEXT_PUBLIC_SMTP_FROM="Typebot Notifications <your-email@example.com>" |
| 25 | SMTP_SECURE=false # Set to true for SSL |
| 26 | |
| 27 | SMTP_USERNAME=none |
| 28 | SMTP_PASSWORD=none |
| 29 | |
| 30 | S3_ENDPOINT=192.168.42.125 |
| 31 | S3_PORT=9000 |
| 32 | S3_SSL=false |
| 33 | S3_REGION=us-east-1 |
| 34 | S3_BUCKET=typebot-storage |
| 35 | S3_ACCESS_KEY=minioAdmin |
| 36 | S3_SECRET_KEY=G0dM!nS3cr3t2025 |
| 37 | |
| 38 | |
| 39 | ENABLE_PAYMENTS=false |
| 40 | |
| 41 | # Disable third-party logins |
| 42 | AUTH_GOOGLE=false |
| 43 | AUTH_GITHUB=false |
| 44 | AUTH_FACEBOOK=false |
docker-compose.yml
· 2.0 KiB · YAML
Ham
x-typebot-common: &typebot-common
restart: always
depends_on:
typebot-redis:
condition: service_healthy
typebot-db:
condition: service_healthy
typebot-minio:
condition: service_healthy
networks:
- typebot-network
env_file: .env
environment:
REDIS_URL: redis://typebot-redis:6379
services:
typebot-db:
container_name: typebot-db
image: postgres:16
restart: always
volumes:
- ./db-data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=typebot
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=typebot
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d typebot"]
interval: 5s
timeout: 5s
retries: 10
networks:
- typebot-network
typebot-redis:
container_name: typebot-redis
image: redis:alpine
restart: always
command: --save 60 1 --loglevel warning
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
start_period: 20s
interval: 30s
retries: 5
timeout: 3s
volumes:
- ./redis-data:/data
networks:
- typebot-network
typebot-minio:
container_name: typebot-minio
image: minio/minio
restart: always
command: server /data --console-address ":9001"
environment:
- MINIO_ROOT_USER=minioAdmin
- MINIO_ROOT_PASSWORD=G0dM!nS3cr3t2025
volumes:
- ./minio-data:/data
ports:
- "9000:9000"
- "9001:9001"
networks:
- typebot-network
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:9000/minio/health/live || exit 1"]
interval: 30s
timeout: 10s
retries: 5
typebot-builder:
container_name: typebot-builder
<<: *typebot-common
image: baptistearno/typebot-builder:latest
ports:
- "8080:3000"
typebot-viewer:
container_name: typebot-viewer
<<: *typebot-common
image: baptistearno/typebot-viewer:latest
ports:
- "8081:3000"
networks:
typebot-network:
driver: bridge
| 1 | x-typebot-common: &typebot-common |
| 2 | restart: always |
| 3 | depends_on: |
| 4 | typebot-redis: |
| 5 | condition: service_healthy |
| 6 | typebot-db: |
| 7 | condition: service_healthy |
| 8 | typebot-minio: |
| 9 | condition: service_healthy |
| 10 | networks: |
| 11 | - typebot-network |
| 12 | env_file: .env |
| 13 | environment: |
| 14 | REDIS_URL: redis://typebot-redis:6379 |
| 15 | |
| 16 | services: |
| 17 | typebot-db: |
| 18 | container_name: typebot-db |
| 19 | image: postgres:16 |
| 20 | restart: always |
| 21 | volumes: |
| 22 | - ./db-data:/var/lib/postgresql/data |
| 23 | environment: |
| 24 | - POSTGRES_DB=typebot |
| 25 | - POSTGRES_USER=postgres |
| 26 | - POSTGRES_PASSWORD=typebot |
| 27 | healthcheck: |
| 28 | test: ["CMD-SHELL", "pg_isready -U postgres -d typebot"] |
| 29 | interval: 5s |
| 30 | timeout: 5s |
| 31 | retries: 10 |
| 32 | networks: |
| 33 | - typebot-network |
| 34 | |
| 35 | typebot-redis: |
| 36 | container_name: typebot-redis |
| 37 | image: redis:alpine |
| 38 | restart: always |
| 39 | command: --save 60 1 --loglevel warning |
| 40 | healthcheck: |
| 41 | test: ["CMD-SHELL", "redis-cli ping | grep PONG"] |
| 42 | start_period: 20s |
| 43 | interval: 30s |
| 44 | retries: 5 |
| 45 | timeout: 3s |
| 46 | volumes: |
| 47 | - ./redis-data:/data |
| 48 | networks: |
| 49 | - typebot-network |
| 50 | |
| 51 | typebot-minio: |
| 52 | container_name: typebot-minio |
| 53 | image: minio/minio |
| 54 | restart: always |
| 55 | command: server /data --console-address ":9001" |
| 56 | environment: |
| 57 | - MINIO_ROOT_USER=minioAdmin |
| 58 | - MINIO_ROOT_PASSWORD=G0dM!nS3cr3t2025 |
| 59 | volumes: |
| 60 | - ./minio-data:/data |
| 61 | ports: |
| 62 | - "9000:9000" |
| 63 | - "9001:9001" |
| 64 | networks: |
| 65 | - typebot-network |
| 66 | healthcheck: |
| 67 | test: ["CMD-SHELL", "curl -f http://localhost:9000/minio/health/live || exit 1"] |
| 68 | interval: 30s |
| 69 | timeout: 10s |
| 70 | retries: 5 |
| 71 | |
| 72 | typebot-builder: |
| 73 | container_name: typebot-builder |
| 74 | <<: *typebot-common |
| 75 | image: baptistearno/typebot-builder:latest |
| 76 | ports: |
| 77 | - "8080:3000" |
| 78 | |
| 79 | typebot-viewer: |
| 80 | container_name: typebot-viewer |
| 81 | <<: *typebot-common |
| 82 | image: baptistearno/typebot-viewer:latest |
| 83 | ports: |
| 84 | - "8081:3000" |
| 85 | |
| 86 | networks: |
| 87 | typebot-network: |
| 88 | driver: bridge |
restart-typebot.sh
· 301 B · Bash
Ham
#!/bin/bash
echo "Stopping Typebot..."
docker-compose down
echo "Starting Typebot..."
docker-compose up -d
echo "Waiting for services to start..."
sleep 5 # Wait 5 seconds for containers to start
echo "Checking container status..."
docker ps | grep typebot
echo "Typebot restarted successfully!"
| 1 | #!/bin/bash |
| 2 | |
| 3 | echo "Stopping Typebot..." |
| 4 | docker-compose down |
| 5 | |
| 6 | echo "Starting Typebot..." |
| 7 | docker-compose up -d |
| 8 | |
| 9 | echo "Waiting for services to start..." |
| 10 | sleep 5 # Wait 5 seconds for containers to start |
| 11 | |
| 12 | echo "Checking container status..." |
| 13 | docker ps | grep typebot |
| 14 | |
| 15 | echo "Typebot restarted successfully!" |