Back

[SOLVED] Need to Create Traefik Service for Docker Containers

  • 0
  • Self Hosted
  • General
Infinil
8 Mar, 2023, 09:17

I am planning to create a trafik service for my other docker containers in the same appwrite vps. I am a noob so wanted to ask should I do this? since traefik is already on 443 and 80 port (appwrite)

TL;DR
User wants to create a Traefik service for their Docker containers in the same appwrite VPS. They are unsure if they should do this because Traefik is already on ports 443 and 80 (appwrite). The recommended solution is to run appwrite on non-standard ports and use a reverse proxy like Nginx Proxy Manager to expose it on ports 443 and 80. Editing the docker-compose.yml file can also be done to change the ports. User experiences issues even after making changes and allowing ports in the firewall. The solution is to check the output of 'docker ps' and use 'curl -k https
Drake
8 Mar, 2023, 18:28

I highly encourage minimizing changes to the Appwrite docker-compose.yml file because, then, it'll be harder to upgrade in the future. The easiest thing to do is to have appwrite run on non-standard ports and put a reverse proxy in front of appwrite to expose it on ports 443 and 80. I don't like dealing with reverse proxies so I use Nginx Proxy Manager to easily manage my reverse proxy. If you'd like to do the same, check out https://medium.com/@stnguyen90/how-to-run-appwrite-behind-nginx-19348ed34243

Infinil
8 Mar, 2023, 19:18

to change ports

Infinil
8 Mar, 2023, 19:18

best is to edit docker compose file right?

Infinil
8 Mar, 2023, 19:18

i believe i will be asked the ports again on migration?

Drake
8 Mar, 2023, 19:46

yes, you can just edit the compose file

Infinil
9 Mar, 2023, 00:42

But then appwrite is supposed to work on those non standard ports with custom domain right ??

Drake
9 Mar, 2023, 00:43

yes...

Infinil
9 Mar, 2023, 00:52

It's not working even after docker compose up -d

Infinil
9 Mar, 2023, 00:52

I have allowed the ports in my firewall-

Drake
9 Mar, 2023, 00:53

what's the output of docker ps?

Infinil
9 Mar, 2023, 01:05
Drake
9 Mar, 2023, 01:06

ok so curl -k https://localhost:7443/v1/health/version works?

Infinil
9 Mar, 2023, 01:09

it worked now 0-0

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more