feat: Gitea Actions CI/CD — baut Image und pushed in Registry
Some checks failed
Build & Push Docker Image / build (push) Has been cancelled
Some checks failed
Build & Push Docker Image / build (push) Has been cancelled
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user