Skip to content

Commit

Permalink
Update environment variable handling in Docker setup
Browse files Browse the repository at this point in the history
Removed hard-coded environment variables from docker-compose files and added them to .env.example for better configuration management. This change simplifies updating variables across different environments by using a single source.
  • Loading branch information
EpicOfficer committed Oct 5, 2024
1 parent 99ff90e commit 2c406d2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ POSTGRES_PASSWORD=password

BLINK_RUN_MIGRATIONS=true

API_ALLOWED_ORIGIN=http://localhost:5280
API_ALLOWED_ORIGIN=http://localhost:8280
API_URL=http://localhost:8288/

WORDS_API_KEY=***

Expand Down
3 changes: 0 additions & 3 deletions docker-compose.development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ services:
build:
context: .
dockerfile: Blink3.Web/Dockerfile
environment:
API_ADDRESS: "http://localhost:8288/"
CLIENT_ID: "1223292750766674080"
ports:
- "8280:80"

Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ services:
restart: always
image: ghcr.io/epicofficer/blink3.web:latest
environment:
API_ADDRESS: "https://api.blinkbot.io/"
CLIENT_ID: "1223292750766674080"
API_ADDRESS: ${API_URL}
CLIENT_ID: ${DISCORD_CLIENT_ID}
depends_on:
- api
networks:
Expand Down

0 comments on commit 2c406d2

Please sign in to comment.