backend
backend copied to clipboard
App restarting randomly and losing data/settings/configurations
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.
Did you set up a persistent storage for the Postgres database?
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:
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/