services:
  poshmanager:
    build: .
    ports:
      - "3000:3000"
    environment:
      NODE_ENV: production
      PORT: 5174
      SERVER_FQDN: http://localhost:3000
      CLIENT_ORIGIN: http://localhost:3000
      CLIENT_ORIGINS: http://localhost:3000,http://127.0.0.1:3000
      API_PROXY_TARGET: http://127.0.0.1:5174
      DATABASE_PATH: /app/data/poshmanager.sqlite
      LOG_DIR: /app/data/logs
      JWT_SECRET: change-this-jwt-secret
      CREDENTIAL_STORE_KEY: change-this-credential-key
      DEFAULT_ADMIN_EMAIL: admin@posh.local
      DEFAULT_ADMIN_PASSWORD: change-me-now
      ALLOW_SCRIPT_EXECUTION: "true"
    volumes:
      - poshmanager-data:/app/data

volumes:
  poshmanager-data:
