mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-05 21:04:43 +08:00
62 lines
1.4 KiB
YAML
62 lines
1.4 KiB
YAML
services:
|
|
typebot-db:
|
|
image: postgres:16
|
|
ports:
|
|
- "5432:5432"
|
|
restart: always
|
|
volumes:
|
|
- db_data:/var/lib/postgresql/data
|
|
environment:
|
|
POSTGRES_DB: "typebot"
|
|
POSTGRES_PASSWORD: "typebot"
|
|
minio:
|
|
image: minio/minio
|
|
command: server /data --console-address ":9001"
|
|
ports:
|
|
- "9000:9000"
|
|
- "9001:9001"
|
|
environment:
|
|
MINIO_ROOT_USER: minio
|
|
MINIO_ROOT_PASSWORD: minio123
|
|
volumes:
|
|
- s3_data:/data
|
|
# This service just make sure a bucket with the right policies is created
|
|
createbuckets:
|
|
image: minio/mc
|
|
depends_on:
|
|
- minio
|
|
entrypoint: >
|
|
/bin/sh -c "
|
|
sleep 10;
|
|
/usr/bin/mc alias set minio http://minio:9000 minio minio123;
|
|
/usr/bin/mc mb --ignore-existing minio/typebot;
|
|
/usr/bin/mc anonymous set public minio/typebot/public;
|
|
exit 0;
|
|
"
|
|
redis:
|
|
image: redis:alpine
|
|
restart: always
|
|
ports:
|
|
- "6379:6379"
|
|
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
|
|
grafana:
|
|
image: grafana/otel-lgtm:latest
|
|
container_name: lgtm
|
|
ports:
|
|
- "3010:3000"
|
|
- "4317:4317"
|
|
- "4318:4318"
|
|
restart: unless-stopped
|
|
volumes:
|
|
db_data:
|
|
s3_data:
|
|
redis-data:
|