Skip to content

[WIP] Fix environment variables for idweb3-ui service in docker-compose#4

Merged
dronreef2 merged 1 commit into
mainfrom
copilot/fix-docker-compose-env-vars
Oct 31, 2025
Merged

[WIP] Fix environment variables for idweb3-ui service in docker-compose#4
dronreef2 merged 1 commit into
mainfrom
copilot/fix-docker-compose-env-vars

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Oct 31, 2025

Fix Docker networking environment variables for proper service communication

  • Update docker-compose.yml environment variables for idweb3-ui service:
  • Update frontend Dockerfile to pass environment variables during build stage (ARG/ENV)
  • Update frontend App.js to use REACT_APP_GUARDIAN_URL environment variable instead of hardcoded localhost:3000
  • Verify if idweb3-api needs to expose port 80 for Sliplane hosting (currently exposes 3001)
  • Test the changes to ensure proper Docker networking
Original prompt

Fix the environment variables in docker-compose.yml for the idweb3-ui service to use service names instead of localhost for proper Docker networking. Specifically, change REACT_APP_API_URL from http://localhost:3001 to http://idweb3-api:3001 and REACT_APP_GUARDIAN_URL from http://localhost:3000 to http://guardian-ui. Additionally, if the API is meant to be accessible externally, ensure the idweb3-api service exposes port 80 or adjust the deployment accordingly for Sliplane hosting.

This pull request was created as a result of the following prompt from Copilot chat.

Fix the environment variables in docker-compose.yml for the idweb3-ui service to use service names instead of localhost for proper Docker networking. Specifically, change REACT_APP_API_URL from http://localhost:3001 to http://idweb3-api:3001 and REACT_APP_GUARDIAN_URL from http://localhost:3000 to http://guardian-ui. Additionally, if the API is meant to be accessible externally, ensure the idweb3-api service exposes port 80 or adjust the deployment accordingly for Sliplane hosting.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Oct 31, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

@dronreef2 dronreef2 marked this pull request as ready for review October 31, 2025 18:11
@dronreef2 dronreef2 merged commit bdb936a into main Oct 31, 2025
1 of 2 checks passed
Copilot AI requested a review from dronreef2 October 31, 2025 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants