feat: Gitea Actions CI/CD — baut Image und pushed in Registry
Some checks failed
Build & Push Docker Image / build (push) Has been cancelled

This commit is contained in:
Michess
2026-04-13 11:39:18 +02:00
parent 47d9464ad4
commit 7b1f898b9e
3 changed files with 42 additions and 26 deletions

View File

@@ -1,28 +1,19 @@
services:
michess:
build:
context: .
args:
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-http://localhost:3001}
NEXT_PUBLIC_APP_URL: ${NEXT_PUBLIC_APP_URL:-http://localhost:3000}
image: michess:latest
image: git.mischlabs.de/mrdiderot/michess:latest
container_name: michess
restart: unless-stopped
environment:
NODE_ENV: production
# PostgreSQL connection (uses 'db' service below)
PGHOST: db
PGPORT: 5432
PGDATABASE: ${POSTGRES_DB:-michess}
PGUSER: ${POSTGRES_USER:-michess}
PGPASSWORD: ${POSTGRES_PASSWORD:-changeme}
# App config
PORT: 3001
SESSION_SECRET: ${SESSION_SECRET:-change-this-secret-in-production}
CORS_ORIGIN: ${CORS_ORIGIN:-http://localhost:3000}
# Admin setup: user with this email gets admin role on startup
ADMIN_EMAIL: ${ADMIN_EMAIL:-}
# Git update path (used by admin panel update button)
APP_DIR: /opt/michess
ports:
- "${MICHESS_PORT:-3000}:3000"
@@ -30,8 +21,6 @@ services:
depends_on:
db:
condition: service_healthy
volumes:
- app_pnpm:/opt/michess/.pnpm-store
networks:
- michess_net
@@ -56,8 +45,6 @@ services:
volumes:
postgres_data:
driver: local
app_pnpm:
driver: local
networks:
michess_net: