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

Next.JS does NOT support Docker Swarm. #71826

Open
SanderCokart opened this issue Oct 24, 2024 · 0 comments
Open

Next.JS does NOT support Docker Swarm. #71826

SanderCokart opened this issue Oct 24, 2024 · 0 comments
Labels
bug Issue was opened via the bug report template. Output (export/standalone) Related to the the output option in `next.config.js`.

Comments

@SanderCokart
Copy link

Link to the code that reproduces this issue

https://github.com/SanderCokart/sandercokart.com/tree/development

To Reproduce

docker service create and docker stack deploy both do launch the nodes and services but going to localhost:3000 results in nothing.

Current vs. Expected behavior

Going to localhost:3000 results in nothing.

Expected behavior: webpage shows up

Provide environment information

Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 11 Pro
  Available memory (MB): 65268
  Available CPU cores: 16
Binaries:
  Node: 20.17.0
  npm: N/A
  Yarn: N/A
  pnpm: 9.11.0
Relevant Packages:
  next: 14.2.11 // An outdated version detected (latest is 15.0.1), upgrade is highly recommended!
  eslint-config-next: 14.2.11
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.6.2
Next.js Config:
  output: standalone

Which area(s) are affected? (Select all that apply)

Output (export/standalone)

Which stage(s) are affected? (Select all that apply)

Other (Deployed)

Additional context

After a docker swarm init you can run docker service create -p 80:80 --replicas 1 --name nginx nginx and then visit localhost:80 (make sure to disable apache in wsl running sudo systemctl stop apache2.service in wsl terminal) you can see the nginx welcome page.

Using curl to go to localhost:3000 you get this:

curl: (52) Empty reply from server
@SanderCokart SanderCokart added the bug Issue was opened via the bug report template. label Oct 24, 2024
@github-actions github-actions bot added the Output (export/standalone) Related to the the output option in `next.config.js`. label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue was opened via the bug report template. Output (export/standalone) Related to the the output option in `next.config.js`.
Projects
None yet
Development

No branches or pull requests

1 participant