Skip to content

Commit

Permalink
Move Discord bot token to service-specific environment
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
EpicOfficer committed Oct 7, 2024
1 parent 747b18f commit 6074340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit 6074340

Please sign in to comment.