Files
Michess/docker-compose.yml
Kroonk 6f96b26e4c
Some checks failed
Build & Push Docker Image to Gitea Registry / build-and-push (push) Has been cancelled
Migrate workflow to Gitea registry and use pre-built image
2026-05-20 16:58:05 +02:00

52 lines
1.3 KiB
YAML

services:
michess:
image: git.mischlabs.de/mrdiderot/michess:latest
container_name: michess
restart: unless-stopped
environment:
NODE_ENV: production
PGHOST: db
PGPORT: 5432
PGDATABASE: ${POSTGRES_DB:-michess}
PGUSER: ${POSTGRES_USER:-michess}
PGPASSWORD: ${POSTGRES_PASSWORD:-changeme}
PORT: 3001
SESSION_SECRET: ${SESSION_SECRET:-change-this-secret-in-production}
CORS_ORIGIN: ${CORS_ORIGIN:-http://localhost:3000}
ADMIN_EMAIL: ${ADMIN_EMAIL:-}
APP_DIR: /opt/michess
ports:
- "${MICHESS_PORT:-3000}:3000"
- "${MICHESS_API_PORT:-3001}:3001"
depends_on:
db:
condition: service_healthy
networks:
- michess_net
db:
image: postgres:16-alpine
container_name: michess_db
restart: unless-stopped
environment:
POSTGRES_DB: ${POSTGRES_DB:-michess}
POSTGRES_USER: ${POSTGRES_USER:-michess}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- michess_net
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-michess}"]
interval: 5s
timeout: 5s
retries: 10
volumes:
postgres_data:
driver: local
networks:
michess_net:
driver: bridge