Database structure not deploying after setting up portainer and traefik

Hello,

I had the database working on my digitalocean droplet. Then, I followed the tutorial to set up portainer and traefik Using Custom Domains and SSL with Let's Encrypt and Traefik.

Now after deploying it again, the database structure is gone. I tried to dump the db_save.sql file that I previously backed up to the db_init folder but the database structure still won’t rebuild. Does it have something to do with the new docker-compose.yml?

I did face some issues with port allocation while setting up traefik and ended up removing local containers and restarting docker. But, I doubt it has anything to do with this.

A very common issue is that you haven’t cleared the port as stated in:

So eventually you site is not starting up because of conflict with Traefik.

Hey George,

yeah I read that and solved the port issues, although I had to go a bit further and remove my containers because killing the processes did not free the port somehow (I spent hours trying many ways from all over).

I was able to fix the db issue by conecting to the db and then running the db_save.sql directly in SequelAce (didn’t know this was possible, still learning).

1 Like