![](https://cdn.discordapp.com/avatars/362338956525830144/035aac2c0a87ad2eb59a9ff5fbf95c18.webp)
Hi, how to set a fixed subnet for docker networks used by appwrite? I'm asking so I can set that subnet allowed on my firewall
![](https://cdn.discordapp.com/avatars/462046107556511744/504fd808296728e8e89d82b8ea1e77a9.webp)
This would be some docker compose setting. Maybe this will help: https://stackoverflow.com/questions/46845381/how-do-configure-docker-compose-to-use-a-given-subnet-if-a-variable-is-set-or-c
Something really important, though, is I highly suggest leaving the docker-compose.yml file created by Appwrite unchanged and put any customizations you need in a docker-compose.override.yml file so that upgrades can wipe the docker-compose.yml file and your customizations would be fine
![](https://cdn.discordapp.com/avatars/362338956525830144/035aac2c0a87ad2eb59a9ff5fbf95c18.webp)
Hi Steven, thanks for your answer. I'll think about the best solution to both avoid issues with the firewall due to network changes and appwrite updates 🤔
![](https://cdn.discordapp.com/avatars/362338956525830144/035aac2c0a87ad2eb59a9ff5fbf95c18.webp)
I created a docker-compose.override.yml like you suggested, with this content, so if somebody has the same issue:
networks: appwrite: name: appwrite ipam: config: - subnet: 172.21.46.0/24 gateway: name: gateway ipam: config: - subnet: 172.21.47.0/24
Then launched using -f docker-compose.override.yml and seems to work fine, thanks
![](https://cdn.discordapp.com/avatars/462046107556511744/504fd808296728e8e89d82b8ea1e77a9.webp)
btw, docker compose up -d
should use Burger the regular and override compose files automatically
![](https://cdn.discordapp.com/avatars/462046107556511744/504fd808296728e8e89d82b8ea1e77a9.webp)
[SOLVED] Fixing network subnet
Recommended threads
- Scheduled cloud function
As I understood it is possible to create a function execution from the server sdk with an ISO date as the time. Am I wrong to assume that this will execute the ...
- Question about Dashboard: Sessions-Displ...
Hello, I have a question regarding the display of active sessions in the Dashboard. As you can see all the values are identical making it impossible to distingu...
- (Self-Hosted) Dart function deployment b...
Hello everyone, I am currently trying to deploy a dart function on my Appwrite instance (v1.5.7). Due to the need of a corporate certificate to download depende...
![](/images/bgs/pre-footer.png)