# garymcphee.com — static memorial site (nginx). The FastAPI admin backend
# (uploads, guestbook moderation, livestream switcher, email notifications)
# was retired 2026-07-10 now that the service is over; the site is a plain
# static file server again. Content lives in ./public.
#
# To update the site: edit files in ./public, then run:
#   srv-gw deploy --project garymcphee

services:
  app:
    image: nginx:alpine
    container_name: ${PROJECT_NAME}-app
    restart: unless-stopped
    network_mode: bridge

    # DO NOT CHANGE - port is managed by gateway
    ports:
      - "172.17.0.1:${PORT}:80"

    volumes:
      - ./public:/usr/share/nginx/html:ro
      - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro

    # Resource limits
    mem_limit: 256m
    cpus: 0.5
