Back

How to expose traefik configurations to edit them

  • 0
  • Self Hosted
cyberpwn
25 Oct, 2024, 02:16

I want to use the already existing traefik service in the compose group as a reverse proxy over top of appwrite. Is there any way i can modify the existing config but outside of the container just like the .env file, or is it possible to specify another configuration file that I provide? I see theres a volume in the compose yml for traefik to storage/config or whatever, how can I do this? I want to keep the config read only in the container so i'd like to configure it in my repo and only have it added in on compose startup / build

TL;DR
You can add a custom dynamic configuration file for Traefik by specifying it in your Docker Compose file under the Traefik service. Create a new configuration file with your desired settings and mount it as a volume in the Traefik service in the Compose file. This will allow you to keep the configuration read-only in the container and manage it in your repository.
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