appwrite.exception.AppwriteException: HTTPConnectionPool(host='localhost', port=88): Max retries exc
- 0
- Self Hosted
is your appwrite server running on port 88 ?
appwrite in the port 88.
I want to say that my django rest framework project is in docker and that I also install appwrite
can you run a docker ps on your machine and share the output ?
can you share the commands you used inside your docker compose for the traefik container ?
I think theres some mishap with the ports..
but, it's funny because I'm consuming the appwrite service from an angular front-end and it works perfect
okay so appwrite_port is 88 and appwrite_address is 443 ?
Can you also share the labels in the appwrite container?
what do you mean by tags?
labels of the appwrite container
it has some traefik specific config too
okay and last question. When you were installing appwrite, what port did you provide in the CLI prompts?
to be clear - these steps
I understand but I have the ports and other credentials in my .env file, and that's how I work.
Please try not to create duplicate posts: https://discord.com/channels/564160730845151244/1108768840273362944/1111012036151885824
Looking at your screenshot, traefik exposes ports 443 and 88
Whereas in your env you have 447 and 88
To me it seems like you need to restart your docker compose setup
Sorry, I corrected it yesterday but it's still the same:
As I mentioned in your original thread, you can't connect to localhost port 80 from inside your DRF container because it will try to connect to itself rather than Appwrite. You may need to use your LAN IP or put appwrite's traefik container and DRF on the same network and then use traefik's hostname as the hostname rather than localhost
Are you using the same docker compose to declare both the appwrite stack and your Django app ?
but it is not port 80, but 88
If both containers are part of the same docker compose file, then you need to add your django container to the same network as the traefik container.
if they are in different compose files you need to first declare an external network in the django app like so
services:
# ...
networks:
network1:
name: traefik_network_name
external: true
Then add your django container to the network network1
ok, i'll try it. Thanks
Recommended threads
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Migrate from cloud to localhost
Hello everyone. I need to migrate my test project from cloud to localhost, however it seems that this is possible only if a self-hosted appwrite instance it's h...