mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-05 21:04:43 +08:00
Replace deprecated `mc config host add` with `mc alias set`. ## Context Running the current **createbuckets** service logs errors similar to: ``` mc: <ERROR> `config` is not a recognized command. Get help using `--help` flag. mc: <ERROR> Unable to set anonymous `public` for `minio/typebot/public`. Requested path `/minio/typebot/public` not found. ``` These arise because the command `mc config host` add was removed in recent releases in favor of `mc alias set`. Without a valid alias, subsequent commands reference a non‑existent path and fail. `--ignore-existing` – makes bucket creation idempotent so the service can run multiple times without failing.
40 lines
932 B
YAML
40 lines
932 B
YAML
version: "3.3"
|
|
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;
|
|
"
|
|
volumes:
|
|
db_data:
|
|
s3_data:
|