# production container configuration for BOEM internal server (podman-compose)
# trimmed from the development server to essential services only:
#   caddy (reverse proxy + file server), shiny (R apps)
# data accessed directly from /share volume:
#   duckdb, pmtiles, gpkg, csv, tif

services:
  caddy:
    container_name: caddy
    image: caddy:latest
    ports:
      - 80:80
    restart: unless-stopped
    volumes:
      - ./Caddyfile:/etc/caddy/Caddyfile
      - /share:/share
      - /share/caddy/data:/data
      - /share/caddy/config:/config

  shiny:
    container_name: shiny
    image: ghcr.io/marinesensitivity/shiny:latest
    labels:
      io.containers.autoupdate: "registry"
    ports:
      - 3838:3838
    restart: unless-stopped
    volumes:
      - /share:/share
      - /share/github/MarineSensitivity/apps:/srv/shiny-server
    environment:
      MSENS_ENV: prod
      SHINY_LOG_STDERR: 1
