# oikos-web deploy stack — the control-room SPA container.
#
# Publishes the same host port the oikos stack's `web` service used
# (8091:80); the outer production Caddy (caddy-conf repo, LXC 121) targets
# this published port, so no shared Docker network with the oikos stack is
# needed. Images are version-tagged by scripts/deploy.sh
# (oikos-web:v$VERSION); `latest` is only a manual-build fallback.

services:
  web:
    image: oikos-web:${OIKOS_VERSION:-latest}
    build:
      context: .
      dockerfile: compose/Dockerfile
    restart: unless-stopped
    ports:
      - "8091:80"
    stop_signal: SIGTERM
    mem_limit: 64m
    cpus: 0.25
