Initial commit: Complete NodeJS-native setup
- Migrated from Python pre-commit to NodeJS-native solution - Reorganized documentation structure - Set up Husky + lint-staged for efficient pre-commit hooks - Fixed Dockerfile healthcheck issue - Added comprehensive documentation index
This commit is contained in:
45
.gitea/docker-compose.ci.yml
Normal file
45
.gitea/docker-compose.ci.yml
Normal file
@@ -0,0 +1,45 @@
|
||||
# Gitea Actions CI/CD Docker Compose Override
|
||||
# This file provides CI-specific configurations for Gitea Actions
|
||||
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
# Frontend service with CI optimizations
|
||||
frontend:
|
||||
build:
|
||||
context: .
|
||||
target: builder
|
||||
cache_from:
|
||||
- ${REGISTRY:-gitea.example.com}/${IMAGE_NAME:-rxminder}:buildcache
|
||||
args:
|
||||
# Use build args from CI environment
|
||||
- VITE_COUCHDB_URL=${VITE_COUCHDB_URL:-http://couchdb:5984}
|
||||
- VITE_COUCHDB_USER=${VITE_COUCHDB_USER:-admin}
|
||||
- VITE_COUCHDB_PASSWORD=${VITE_COUCHDB_PASSWORD:-change-this-secure-password}
|
||||
- APP_BASE_URL=${APP_BASE_URL:-http://localhost:8080}
|
||||
- VITE_GOOGLE_CLIENT_ID=${VITE_GOOGLE_CLIENT_ID:-}
|
||||
- VITE_GITHUB_CLIENT_ID=${VITE_GITHUB_CLIENT_ID:-}
|
||||
- NODE_ENV=production
|
||||
environment:
|
||||
- CI=true
|
||||
labels:
|
||||
- 'gitea.ci=true'
|
||||
- 'gitea.project=rxminder'
|
||||
|
||||
# Test database for CI
|
||||
couchdb-test:
|
||||
image: couchdb:3.3.2
|
||||
environment:
|
||||
- COUCHDB_USER=admin
|
||||
- COUCHDB_PASSWORD=test-secure-password
|
||||
ports:
|
||||
- '5985:5984'
|
||||
volumes:
|
||||
- couchdb_test_data:/opt/couchdb/data
|
||||
labels:
|
||||
- 'gitea.ci=true'
|
||||
- 'gitea.service=test-database'
|
||||
|
||||
volumes:
|
||||
couchdb_test_data:
|
||||
driver: local
|
||||
Reference in New Issue
Block a user