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

(Feat): Added Appwrite template #685

Open
wants to merge 3 commits into
base: canary
Choose a base branch
from

Conversation

cristodcgomez
Copy link

I added a basic Appwrite configuration.

It uses all the traefik settings inside docker-compose.yml (as using domains tab can create some issues on the first run... at least it failed for me several times in that stage)

Comment on lines +20 to +34
labels:
- traefik.enable=true
- traefik.http.services.appwrite_api.loadbalancer.server.port=80

- traefik.http.routers.awmain.rule=Host(`YOUR_DOMAIN_HERE`) && !PathPrefix(`/console`) && !PathPrefix(`/v1/realtime`)
- traefik.http.routers.awmain.entrypoints=web,websecure
- traefik.http.routers.awmain.tls=true
- traefik.http.routers.awmain.tls.certresolver=letsencrypt
- traefik.http.routers.awmain.service=appwrite_api

- traefik.http.routers.awserverf.rule=Host(`YOUR_FUNCTION_DOMAIN_HERE`)
- traefik.http.routers.awserverf.entrypoints=web,websecure
- traefik.http.routers.awserverf.tls=true
- traefik.http.routers.awserverf.tls.certresolver=letsencrypt
- traefik.http.routers.awserverf.service=appwrite_api
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this manual labels?

Copy link
Author

Choose a reason for hiding this comment

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

In appwrite it seems you need to redirect traefik to the appwrite container for all route but not for console or realtime (which goes to their respective containers), otherwise you'll face some issues with the admin area and wirh some websocket connections (that rely on the realtime endpoint)

When I made the template I faced the issue that the domain tab didn't worked (at least for me it didn't) so I had to put the manual traefik labels to make it work.

About the function_domain labels: in some cases the function domain can be different from the regular API domains, so you need to explicitly add it in the traefik routers.

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.

2 participants