49 lines
1.5 KiB
YAML
49 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:
|
|
image: euchre-camp/euchre-camp:0.1.0
|
|
container_name: euchre-camp
|
|
ports:
|
|
- "51193:3000"
|
|
environment:
|
|
# Database Configuration (REQUIRED: Set via CasaOS environment variables)
|
|
- DATABASE_PROVIDER=postgresql
|
|
- DATABASE_URL="postgresql://euchre_camp:LINGO5row_hiding@dhg.lol:5432/euchre_camp"
|
|
- DATABASE_SHADOW_URL="postgresql://euchre_camp:LINGO5row_hiding@dhg.lol: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}
|
|
|
|
# Version tracking
|
|
- IMAGE_VERSION=0.1.0.dev
|
|
|
|
volumes:
|
|
# Persist uploaded files and static content
|
|
- /DATA/AppData/euchre-camp/config:/app/public/uploads
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
- euchre-network
|
|
|
|
volumes:
|
|
euchre_camp_app_data:
|
|
driver: local
|
|
|
|
networks:
|
|
euchre-network:
|
|
driver: bridge
|