backend:
  command:
    - uvicorn
    - app.main:app
    - --host
    - "0.0.0.0"
    - --port
    - "8000"
    - --workers
    - "1"
  initContainers:
    - name: init-permissions
      image: busybox:1.36
      command:
        - sh
        - -c
        - |
          echo "Fixing permissions on /app/data..."
          chown -R 1000:1000 /app/data
          chmod -R 755 /app/data
          ls -la /app/data
          echo "Permissions fixed successfully"
      volumeMounts:
        - name: data
          mountPath: /app/data
      securityContext:
        runAsUser: 0
        runAsNonRoot: false
