puffin-app/docker-compose.portainer.yml

30 lines
853 B
YAML
Raw Normal View History

version: '3.8'
services:
web:
image: code.puffinoffset.com/matt/puffin-app:latest
ports:
- "3800:3800"
environment:
- NODE_ENV=production
restart: unless-stopped
volumes:
# Mount .env file for runtime environment variable injection
- ./.env:/usr/share/nginx/html/.env:ro
# Optional: override nginx config if needed
# - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
# Production deployment notes:
# 1. Ensure .env file exists on the host with required variables:
# - VITE_WREN_API_TOKEN
# - VITE_FORMSPREE_CONTACT_ID
# - VITE_FORMSPREE_OFFSET_ID
#
# 2. Configure Gitea registry authentication in Portainer before deploying
#
# 3. To update to new image:
# - Navigate to stack in Portainer
# - Click "Update the stack"
# - Enable "Pull latest image version"
# - Click "Update"