From 6074340d1d25f77d31e08b44401037abc2007978 Mon Sep 17 00:00:00 2001 From: EpicOfficer <9379778+EpicOfficer@users.noreply.github.com> Date: Mon, 7 Oct 2024 10:43:25 +0100 Subject: [PATCH] Move Discord bot token to service-specific environment The Discord bot token environment variable has been relocated from the global to the service-specific environment section in docker-compose.yml. This ensures it is only available to the relevant service, improving security and configuration clarity. --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 7d92206..5475ae9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,6 @@ x-common-environment: &common-env ConnectionStrings__DefaultConnection: Server=postgres;Port=5432;Database=${POSTGRES_USER};Userid=${POSTGRES_USER};Password=${POSTGRES_PASSWORD};SslMode=Prefer;TrustServerCertificate=true Redis__ConnectionString: redis,ssl=false,name=${REDIS_NAME} ASPNETCORE_ENVIRONMENT: Production - Discord__BotToken: ${DISCORD_BOT_TOKEN} services: redis: @@ -40,6 +39,7 @@ services: restart: always environment: <<: *common-env + Discord__BotToken: ${DISCORD_BOT_TOKEN} Discord__DevGuildId: ${DISCORD_DEV_GUILD} RunMigrations: ${BLINK_RUN_MIGRATIONS} WordsApiKey: ${WORDS_API_KEY}