
Hi, I currently have Appwrite running on the default port 443. However, now I want to expose NPM on port 443, which will forward traffic to the Appwrite Traefik. Is it okay to change the port in the Appwrite docker-compose file from port 443 to another port, or will the upgrade script change the Traefik port back to 443? Or do I need to reinstall Appwrite entirely and define the port on which I want to have Appwrite currently during the installation?

I think changing the env var should do the job

Uh, i looked and tried to find it in .env, but haven't find any variable which defines port 443

check docker-compose.yml

https://medium.com/@stnguyen90/how-to-run-appwrite-behind-nginx-19348ed34243 You could try to follow this guide

Yeah I'm following this guide, but right in the first step Steven mentions installing appwrite using non-standard ports.

Yes, i can edit ports in docker-compose.yml, but according to my knowledge, the upgrade script would remove the tewaks i did.

Upgrade doesn't change your ports though. Infact, any upgrade using docker pull will override your misc. tweaks in appwrite if I am not wrong.

So i can change this piece of configuration:
services:
traefik:
some_configuration
command:
some_configuration
- --entrypoints.appwrite_web.address=:80
- --entrypoints.appwrite_websecure.address=:443
ports:
- 80:80
- 443:443
To this configuration?
services:
traefik:
some_configuration
command:
some_configuration
- --entrypoints.appwrite_web.address=:80
- --entrypoints.appwrite_websecure.address=:443
ports:
- 8080:80
- 8443:443

that should work. if there's nginx involved, there might be additional steps for forwarding. Its been a while since I've touched any nginx conf. so the memory is hazzy.

Ok, thank you for your help! Could you also elaborate a bit more on what does appwrite upgrade script change/remove or is there a link i could read about this topic?
Recommended threads
- DigitalOcean Droplet SMTP failure with m...
Is there any way to get the appwrite 1.6 mailer docker image working on a droplet? I can send emails via the appwrite console, but my magiclinks always fiail wi...
- unable to remove project 500 error
We are unable to remove a project, when clicking setting option it showing 500 Server Error
- How to run queries to get the storage li...
I installed the n8n (self-hosting) and community node n8n-nodes-nappwrite. I tried to get the storage list files more than 25 records. But I cannot find the w...
