[Unit] Description=Nexus database container [Container] AutoUpdate=registry ContainerName=nexus-database Environment=POSTGRES_USER=nexus Environment=POSTGRES_DB=nexus Environment=TZ=Europe/Zurich HealthCmd=pg_isready -U nexus HealthInterval=30s HealthTimeout=10s HealthRetries=5 Image=docker.io/postgres:18 Label=io.containers.autoupdate=registry Pod=nexus.pod Secret=database-password,type=env,target=POSTGRES_PASSWORD StartWithPod=true Timezone=Europe/Zurich Volume=nexus-database.volume:/var/lib/postgresql Volume=/var/mnt/nas/containers/nexus/storage/database-backup:/backup [Service] Restart=always [Install] WantedBy=default.target