Files
euchre_camp/docker-compose.casaos.yml
T

48 lines
1.5 KiB
YAML

# CasaOS Optimized Docker Compose Configuration
# This file is optimized for deployment on CasaOS
# Usage: docker-compose -f docker-compose.casaos.yml up -d
#
# IMPORTANT: This configuration requires an external PostgreSQL database.
# Set DATABASE_URL environment variable to your PostgreSQL connection string.
services:
app:
build:
context: .
target: runner
container_name: euchre-camp
ports:
- "3000:3000"
environment:
# Database Configuration (REQUIRED: Set via CasaOS environment variables)
- DATABASE_PROVIDER=postgresql
- DATABASE_URL=${DATABASE_URL:-postgresql://euchre_camp:password@your-postgres-host:5432/euchre_camp}
- DATABASE_SHADOW_URL=${DATABASE_SHADOW_URL:-postgresql://euchre_camp:password@your-postgres-host:5432/euchre_camp_shadow}
# Better Auth Configuration
- BETTER_AUTH_SECRET=${BETTER_AUTH_SECRET:-change-this-secret-in-production}
- BETTER_AUTH_URL=${BETTER_AUTH_URL:-http://localhost:3000}
# Application Configuration
- NODE_ENV=production
# Trusted Origins for Better Auth
- TRUSTED_ORIGINS=${TRUSTED_ORIGINS:-http://localhost:3000,http://127.0.0.1:3000}
volumes:
# Persist uploaded files and static content
- euchre_camp_app_data:/app/public/uploads
restart: unless-stopped
networks:
- euchre-network
volumes:
euchre_camp_app_data:
driver: local
networks:
euchre-network:
driver: bridge