services:
  jarvis-api:
    build:
      context: ./OtthonApi
    container_name: jarvis-api
    restart: unless-stopped
    depends_on:
      - mssql
    environment:
      ASPNETCORE_URLS: http://+:8080
      OTTHON_API_TOKEN: change-me-local-token
      OTTHON_ADMIN_PASSWORD: change-me-admin
      ConnectionStrings__Default: Server=mssql,1433;Database=JarvisHome;User Id=sa;Password=Jarvis!2026Api;TrustServerCertificate=True;Encrypt=False
    ports:
      - "5088:8080"

  mssql:
    image: mcr.microsoft.com/mssql/server:2022-latest
    container_name: jarvis-mssql
    restart: unless-stopped
    environment:
      ACCEPT_EULA: "Y"
      MSSQL_SA_PASSWORD: Jarvis!2026Api
    ports:
      - "14333:1433"
    volumes:
      - jarvis-mssql-data:/var/opt/mssql

volumes:
  jarvis-mssql-data:
