Files
euchre_camp/docker-compose.yml
david 2cf832eeac
Pull Request / unit-tests (pull_request) Successful in 57s
Pull Request / analyze-bump-type (pull_request) Successful in 10s
Release / release (push) Failing after 13s
Build CI Images / build-ci-base (push) Failing after 19s
ci: remove acceptance tests and add dev deployment
- Remove acceptance-tests job from PR workflow to fix pipeline failures
- Update analyze-bump-type to depend only on unit-tests
- Add automatic dev deployment in release workflow that updates docker-compose.yml
- Update docker-compose.yml to use correct registry path (docker.notsosm.art/euchre-camp)
- Update generate-docker-compose.js to use correct registry configuration
2026-04-01 21:49:36 -07:00

60 lines
1.5 KiB
YAML

# Production Docker Compose Configuration
# Usage: docker-compose up -d
services:
app:
image: docker.notsosm.art/euchre-camp:0.1.0.dev
container_name: euchre-camp-app
ports:
- "3000:3000"
environment:
# Database Configuration
- DATABASE_PROVIDER=postgresql
- DATABASE_URL=${DATABASE_URL:-postgresql://euchre_camp:password@db:5432/euchre_camp}
- DATABASE_SHADOW_URL=${DATABASE_SHADOW_URL:-postgresql://euchre_camp:password@db: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
depends_on:
- db
restart: unless-stopped
networks:
- euchre-network
db:
image: postgres:15-alpine
container_name: euchre-camp-db
ports:
- "5432:5432"
environment:
- POSTGRES_DB=euchre_camp
- POSTGRES_USER=euchre_camp
- POSTGRES_PASSWORD=password
volumes:
- euchre_camp_db_data:/var/lib/postgresql/data
- ./scripts/init-postgres.sh:/docker-entrypoint-initdb.d/init-postgres.sh
restart: unless-stopped
networks:
- euchre-network
volumes:
euchre_camp_db_data:
driver: local
networks:
euchre-network:
driver: bridge