Back

Creating a mysql dump using SnapShooter

  • 0
  • General
rSundberg
25 Oct, 2023, 12:31

Hi there!

I am trying to setup a mysql dump using SnapShooter.

Does anyone have experience with this?

Currently i am not able to connect to the database from snapshooter, is this because i need to whitelist their ip addresses?

How would i do that?

Best Regards

TL;DR
User is trying to set up a mysql dump using SnapShooter but is unable to connect to the database. They ask if they need to whitelist SnapShooter's IP addresses and how to do that. To whitelist SnapShooter's IP addresses, the user should modify their firewall rules so that only authorized users can access the container. The user is also advised not to modify Appwrite's docker-compose.yml, but instead create a docker-compose.override.yml file. No specific resources are provided in the thread.
Drake
25 Oct, 2023, 18:03

It could be because the mariadb is in a private docker network and has not been exposed via port forwarding

rSundberg
25 Oct, 2023, 18:10

Thanks for the response Steven!

I was suspecting this would be the case. I tried to search around a bit how to do something like that in docker.

Would you have any resources that can point me in a direction?

Possibly this could be interesting for other users self hosting appwrite.

rSundberg
25 Oct, 2023, 18:12

I'm using digital ocean to host my machine and they acuired snapshooter and it is available as a add-on in the DO ecosystem

Drake
25 Oct, 2023, 18:20

there should be plenty of resources online.

Here's an example in our dev version that forwards the port: https://github.com/appwrite/appwrite/blob/fc35e0f6ffd5ce7dab863515983e1495027e410c/docker-compose.yml#L801-L802

Keep in mind, if you forward the port, you need to lock things down so that no unauthorized user can access the container. Perhaps with firewall rules so that you can only access the port on the server iteslf

Another thing, I highly discourage modifying Appwrite's docker-compose.yml. Instead, you should create a docker-compose.override.yml file that overrides whatever you need.

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