coolify icon indicating copy to clipboard operation
coolify copied to clipboard

[Bug]: Appwrite functions and custom domains broken by template

Open Lennart01 opened this issue 10 months ago • 0 comments

Description

The Appwrite template sets multiple env vars to SERVICE_FQDN which breaks multiple features of Appwrite. Additionally, the _APP_FUNCTIONS_RUNTIMES_NETWORK env var is incorrectly set leading to execution errors (wrong docker network, therefore service can't be resolved).

Minimal Reproduction (if possible, example repository)

Just deploy the template and attempt to use Functions. Custom Domains also can't be created as _APP_DOMAIN includes the protocol (https://) which breaks the internal check. Updating

- _APP_DOMAIN=$SERVICE_FQDN_APPWRITE
- _APP_DOMAIN_TARGET=$SERVICE_FQDN_APPWRITE
- _APP_DOMAIN_FUNCTIONS=$SERVICE_FQDN_APPWRITE

by removing the assignment and setting these vars to

- _APP_DOMAIN
- _APP_DOMAIN_TARGET
- _APP_DOMAIN_FUNCTIONS

And then manually assigning the valid domain resolves this issue. The network issue can be resolved by updating _APP_FUNCTIONS_RUNTIMES_NETWORK to your service id. I guess adding a default network to the docker-compose template could work here 👀.

Exception or Error

No response

Version

v4.0.0-beta.254

Lennart01 avatar Apr 10 '24 00:04 Lennart01