Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running PXE at a custom port with aztec-sandbox is only possible by adding PORT: 8000 in docker-compose.yml #4904

Closed
porco-rosso-j opened this issue Mar 3, 2024 · 2 comments · Fixed by #6094
Assignees
Labels
A-documentation Area: relates to documentation

Comments

@porco-rosso-j
Copy link
Contributor

porco-rosso-j commented Mar 3, 2024

I tried to run Sandbox at a different port instead of 8080. The command aztec-sandbox PXE_PORT=8000 is supposed to run it at port 8000 but it didn't work.

Sandbox log shows:
sandbox-aztec-1 | Aztec Server listening on port 8080

On frontend:
Screenshot 2024-03-04 at 2 16 13

Instead, what's needed to make it work is to add PORT: 8000 as an env value for aztecprotocol/aztec image in .aztec/docker-compose.yml.

  • I guess this is because the name of env variable used in yarn-project/aztec/src/bin/index.ts is just PORT, not PXE_PORT.
  • Passing PORT=8000 to the command aztec-sandbox PXE_PORT=8000 also didn't work. Somehow it should be hard-coded in the docker-compose.yml file.
  • I can find couples of other environment variables with slightly different names defined for the pxe port across different files.
    -- SANDBOX_PXE_PORT in aztec/docker-compose.yml
    -- AZTEC_PORT in aztec/src/cli/cli.ts
@github-project-automation github-project-automation bot moved this to Todo in A3 Mar 3, 2024
@porco-rosso-j porco-rosso-j changed the title Running PXE at a custom port with aztec-sandbox is only possible by adding PORT=8000 in docker-compose.yml Running PXE at a custom port with aztec-sandbox is only possible by adding PORT: 8000 in docker-compose.yml Mar 3, 2024
@catmcgee catmcgee self-assigned this Mar 5, 2024
@catmcgee catmcgee added the A-documentation Area: relates to documentation label Mar 5, 2024
@catmcgee
Copy link
Contributor

catmcgee commented Apr 30, 2024

fixed here #6094

@catmcgee
Copy link
Contributor

fyi

PXE_PORT is not the same as the port that the sandbox runs on. the PXE will run successfully in the right place if you specify PXE_PORT - you can check with docker ps

when this PR is merged (& included in a release) you will be able to optionally run the sandbox on a different port with SANDBOX_PORT and still run PXE on different ports too

@github-project-automation github-project-automation bot moved this from Todo to Done in A3 May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-documentation Area: relates to documentation
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants