From 19a252b67ccc47231e5b66dc964cb163c671cd9b Mon Sep 17 00:00:00 2001 From: Ryuu Pendragon Date: Mon, 7 Jul 2025 16:16:08 +0530 Subject: [PATCH] Create docker-compose.alt.yml Alternate docker compose with host path and minimal env. --- docker-compose.alt.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 docker-compose.alt.yml diff --git a/docker-compose.alt.yml b/docker-compose.alt.yml new file mode 100644 index 0000000..ac011be --- /dev/null +++ b/docker-compose.alt.yml @@ -0,0 +1,24 @@ +# Gitea Mirror alternate deployment configuration +# Standard deployment with host path and minimal environments +services: + gitea-mirror: + image: ghcr.io/raylabshq/gitea-mirror:latest + container_name: gitea-mirror + restart: unless-stopped + ports: + - "${PORT:-4321}:4321" + user: ${PUID:-1000}:${PGID:-1000} + volumes: + - ./data:/app/data + environment: + - NODE_ENV=production + - DATABASE_URL=file:data/gitea-mirror.db + - HOST=0.0.0.0 + - PORT=4321 + - JWT_SECRET=${JWT_SECRET:-your-secret-key-change-this-in-production} + healthcheck: + test: ["CMD", "wget", "--no-verbose", "--tries=3", "--spider", "http://localhost:4321/api/health"] + interval: 30s + timeout: 10s + retries: 5 + start_period: 15s