HA Keeps Resetting

Hello,

I’m on a PC running Windows 10 and I’m using docker compose to spin up instances of Home Assistant and Portainer. For some reason, every time I restart my docker engine or computer and I go to the localhost address of my HA install, it asks me to get started and create my account from scratch every time. Has anyone else experienced this? I’ll attach my docker-compose.yaml file below for reference. Separate question, is it possible to have HA run on a docker container on my PC and leave it on all day so I can hook up my security cameras to it and all that? I’ve been having trouble finding my HA server when I open the iOS app on my phone to connect to it.

version: '3.0'

services:
  portainer:
    container_name: portainer
    image: portainer/portainer-ce
    ports:
      - "9000:9000/tcp"
    environment:
      - TZ=Europe/London
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /opt/portainer:/data
  homeassistant:
    container_name: homeassistant
    image: "ghcr.io/home-assistant/home-assistant:stable"
    volumes:
      - /opt/homeassistant/config:/config
      - /etc/localtime:/etc/localtime:ro
    ports:
      - "8123:8123/tcp"
    privileged: true
  mosquitto:
    image: eclipse-mosquitto
    container_name: mosquitto
    volumes:
      - ./mosquitto/:/mosquito/
      - ./mosquitto/config/mosquitto.conf:/mosquitto/config.mosquitto.conf
      - ./mosquitto/config:/mosquitto/config
    ports:
      - 1883:1883
      - 9001:9001