backend icon indicating copy to clipboard operation
backend copied to clipboard

App restarting randomly and losing data/settings/configurations

Open aabdg346 opened this issue 1 year ago • 3 comments

Hi all,

We deployed an instance of SeatSurfing using docker compose.yml file on azure web apps. Everything seems to be working fine and then randomly lost our configuration/settings. This first happened earlier about 2 months again, we disabled the health check feature and turned on "Always on". It was working fine for a month then today it lost all the data and configuration again.

aabdg346 avatar Dec 11 '23 23:12 aabdg346

Did you set up a persistent storage for the Postgres database?

virtualzone avatar Dec 12 '23 16:12 virtualzone

Thanks for replying. This is the portion we have for the db, same as the documentation. I assumed this would persist the data?

db: image: postgres:12 restart: always networks: sql: volumes: - db:/var/lib/postgresql/data environment: POSTGRES_PASSWORD: DB_PASSWORD POSTGRES_USER: seatsurfing POSTGRES_DB: seatsurfing

volumes: db:

networks: sql: http:

aabdg346 avatar Dec 12 '23 17:12 aabdg346

I don't know how Docker volumes are handled by Azure Web Apps. Maybe the discussion and the links here provide some clues? https://www.reddit.com/r/AZURE/comments/yp5uw1/storage_volumes_in_docker/

virtualzone avatar Dec 12 '23 18:12 virtualzone