# docker-compose.yml — lives on the droplet at /opt/app/docker-compose.yml
#
# The running container always tracks the :latest tag. CI also pushes a
# :<git-sha> tag; to roll back, temporarily change :latest to :<good-sha>.
#
# Replace the <placeholders> before use.

services:
  app:
    image: registry.digitalocean.com/<registry-name>/<app-name>:latest
    restart: unless-stopped
    ports:
      # <host-port>:<app-port>  →  droplet port : container port
      # Docusaurus/nginx serves on 80 inside the container.
      - "80:80"
    # Optional: load environment variables from /opt/app/.env
    # (Delete this block, or `touch /opt/app/.env`, if you have no env vars.)
    env_file:
      - .env
