build: 🏗️ Add docker image and deployment features
This commit is contained in:
@ -1,27 +1,37 @@
|
||||
version: '3.6'
|
||||
version: '3.9'
|
||||
services:
|
||||
postgres:
|
||||
typebot_db:
|
||||
image: postgres:13
|
||||
ports:
|
||||
- '5432:5432'
|
||||
restart: always
|
||||
volumes:
|
||||
- db_data:/var/lib/postgresql/data
|
||||
environment:
|
||||
POSTGRES_DB: 'typebot'
|
||||
POSTGRES_PASSWORD: ''
|
||||
POSTGRES_HOST_AUTH_METHOD: trust
|
||||
minio:
|
||||
image: quay.io/minio/minio
|
||||
command: server /data --console-address ":9001"
|
||||
- POSTGRES_DB=typebot
|
||||
- POSTGRES_PASSWORD=typebot
|
||||
typebot_builder:
|
||||
depends_on:
|
||||
- typebot_db
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
- SCOPE=builder
|
||||
ports:
|
||||
- '9000:9000'
|
||||
- '9001:9001'
|
||||
environment:
|
||||
MINIO_ROOT_USER: minio
|
||||
MINIO_ROOT_PASSWORD: minio123
|
||||
volumes:
|
||||
- s3_data:/data
|
||||
- '8080:3000'
|
||||
env_file:
|
||||
- typebot-config.env
|
||||
command: 'sleep 10 && npx prisma migrate deploy && node server.js'
|
||||
typebot_viewer:
|
||||
depends_on:
|
||||
- typebot_db
|
||||
restart: always
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
- SCOPE=viewer
|
||||
ports:
|
||||
- '8081:3000'
|
||||
env_file:
|
||||
- typebot-config.env
|
||||
volumes:
|
||||
db_data:
|
||||
s3_data:
|
||||
|
Reference in New Issue
Block a user