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

A docker version of the service doesn't response outside a container #76

Open
ghost opened this issue Feb 21, 2024 · 0 comments
Open

A docker version of the service doesn't response outside a container #76

ghost opened this issue Feb 21, 2024 · 0 comments

Comments

@ghost
Copy link

ghost commented Feb 21, 2024

I run a container according to README, but the service doesn't response outside a container. Only inside.

[zelgray@zelgray scripts]$ docker run -d --restart=always -p 3000:3000 instafix:main
b504e5fc91db5dbd74a82ed75b52fcfca99198901d28ba5c463903fa394b9976
[zelgray@zelgray scripts]$ docker ps
CONTAINER ID   IMAGE              COMMAND                  CREATED          STATUS          PORTS                                                                      NAMES
b504e5fc91db   instafix:main      "/app/instafix"          2 seconds ago    Up 1 second     0.0.0.0:3000->3000/tcp, :::3000->3000/tcp                                  funny_shamir
[zelgray@zelgray scripts]$ curl localhost:3000
curl: (56) Recv failure: Connection reset by peer
[zelgray@zelgray scripts]$ docker exec -it funny_shamir bash
root@b504e5fc91db:/app# curl localhost:3000
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><meta property="og:title" content="InstaFix"/><meta property="og:site_name" content="InstaFix"/><meta property="og:description" content="Fix Instagram embeds in Discord (and Telegram!)"/><title>InstaFix</title><link rel="icon" href="data:image/svg+xml,&lt;svg xmlns=&#39;http://www.w3.org/2000/svg&#39; viewBox=&#39;0 0 100 100%&#39;&gt;&lt;text y=&#39;.9em&#39; font-size=&#39;90&#39;&gt;🛠&lt;/text&gt;&lt;/svg&gt;"/><link rel="stylesheet" href="https://unpkg.com/@picocss/pico@latest/css/pico.min.css"/></head><body><main class="container" style="max-width: 35rem"><hgroup><h1>InstaFix</h1><h2>Fix Instagram embeds in Discord (and Telegram!)</h2></hgroup><p>InstaFix serves fixed Instagram image and video embeds. Heavily inspired by fxtwitter.com.</p><section><header><h3 style="margin-bottom: 4px">How to Use</h3><p>Add dd before instagram.com to fix embeds.</p></header><video src="https://user-images.githubusercontent.com/72781956/168544556-31009b0e-62e8-4d4c-909b-434ad146e118.mp4" controls="controls" muted="muted" style="width: 100%; max-height: 100%">Your browser does not support the video tag.</video><hr/><small><a href="https://github.com/Wikidepia/InstaFix" target="_blank">Source code available in GitHub!</a></small><br/><small>• Instagram is a trademark of Instagram, Inc. This app is not affiliated with Instagram, Inc.</small></section></main></body></html>root@b504e5fc91db:/app#
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

No branches or pull requests

0 participants