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

adding local docker compose with local postgres #39

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

webcoderz
Copy link
Collaborator

might need some adjustments

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could your references just use the existing web/.env.example https://github.com/BennyKok/comfyui-deploy/blob/main/web/.env.example

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea can just change the POSTGRES_PORT env of the local Postgres to reflect 5480 , the reason it’s different is because I’m not exposing Postgres to host network it’s only exposed internally

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also since it’s on internal network you can use the service name instead of localhost:5480.. eg. postgres:5480

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The docker file copies in the env.local env vars should I get rid of that also?

@piotr-sikora-v
Copy link

I tried, and after setting all I got error:

pg_proxy-1      | 2024/07/10 16:59:32 Got request from 172.18.0.5:57292
pg_proxy-1      | 2024/07/10 16:59:32 Got request from 172.18.0.5:57292, proxying to postgres:5480, allowed=true, addressArg=, hostHeader=pg_proxy
pg_proxy-1      | 2024/07/10 16:59:32 failed to handle websocket: dial tcp 172.18.0.2:5480: connect: connection refused
comfy-deploy-1  |  ⨯ node_modules/@neondatabase/serverless/index.js (1336:73) @ captureStackTrace
comfy-deploy-1  |  ⨯ Error: Connection terminated unexpectedly
comfy-deploy-1  |     at async Main (./src/components/Main.tsx:87:22)
comfy-deploy-1  | null

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.

3 participants