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