From 6c47d22ae6a6810dd539cf798fdf3e4057c3b39a Mon Sep 17 00:00:00 2001 From: Radical Date: Sun, 25 May 2025 18:40:13 +0200 Subject: [PATCH] fix: add bunny config to docker --- Dockerfile | 6 +++++- compose.dev.yml | 4 ++++ compose.yml | 4 ++++ entrypoint.sh | 7 +++++++ 4 files changed, 20 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d9a0389..9719b70 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,6 +24,10 @@ DATABASE="gorb" \ DATABASE_HOST="database" \ DATABASE_PORT="5432" \ CACHE_DB_HOST="valkey" \ -CACHE_DB_PORT="6379" +CACHE_DB_PORT="6379" \ +BUNNY_API_KEY="your_storage_zone_password_here" \ +BUNNY_ENDPOINT="Frankfurt" \ +BUNNY_ZONE="gorb" \ +BUNNY_CDN_URL="https://cdn.gorb.app" ENTRYPOINT ["/usr/bin/entrypoint.sh"] diff --git a/compose.dev.yml b/compose.dev.yml index d064beb..24b3997 100644 --- a/compose.dev.yml +++ b/compose.dev.yml @@ -23,6 +23,10 @@ services: - DATABASE=gorb - DATABASE_HOST=database - DATABASE_PORT=5432 + - BUNNY_API_KEY="your_storage_zone_password_here" + - BUNNY_ENDPOINT="Frankfurt" + - BUNNY_ZONE="gorb" + - BUNNY_CDN_URL="https://cdn.gorb.app" database: image: postgres:16 restart: always diff --git a/compose.yml b/compose.yml index 84e6695..4f0f543 100644 --- a/compose.yml +++ b/compose.yml @@ -21,6 +21,10 @@ services: - DATABASE=gorb - DATABASE_HOST=database - DATABASE_PORT=5432 + - BUNNY_API_KEY="your_storage_zone_password_here" + - BUNNY_ENDPOINT="Frankfurt" + - BUNNY_ZONE="gorb" + - BUNNY_CDN_URL="https://cdn.gorb.app" database: image: postgres:16 restart: always diff --git a/entrypoint.sh b/entrypoint.sh index a212f8e..8bd8a44 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -20,6 +20,13 @@ port = ${DATABASE_PORT} [cache_database] host = "${CACHE_DB_HOST}" port = ${CACHE_DB_PORT} + +[bunny] +api_key = "${BUNNY_API_KEY}" +endpoint = "${BUNNY_ENDPOINT}" +storage_zone = "${BUNNY_ZONE}" +cdn_url = "${BUNNY_CDN_URL}" + EOF fi