Archive gitea-mirror
This commit is contained in:
32
.archived/gitea-mirror/docker-compose.yml
Normal file
32
.archived/gitea-mirror/docker-compose.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
# Gitea Mirror Service Configuration
|
||||
services:
|
||||
gitea-mirror:
|
||||
# Basic container configuration
|
||||
container_name: gitea-mirror
|
||||
image: ghcr.io/raylabshq/gitea-mirror:v2.22.0
|
||||
restart: unless-stopped
|
||||
user: ${PUID}:${PGID} # Runs as specified user/group
|
||||
|
||||
# Application environment configuration
|
||||
environment:
|
||||
- NODE_ENV=production # Runtime environment
|
||||
- DATABASE_URL=file:data/gitea-mirror.db # SQLite database location
|
||||
- HOST=0.0.0.0 # Binding address
|
||||
- PORT=4321 # Internal container port
|
||||
- JWT_SECRET=${JWT_SECRET} # Authentication secret
|
||||
|
||||
# Persistent storage configuration
|
||||
volumes:
|
||||
- ${APPDATA_PATH}/gitea-mirror/data:/app/data # Application data storage
|
||||
|
||||
# Network port configuration
|
||||
ports:
|
||||
- ${PORT}:4321 # Maps host port to container
|
||||
|
||||
# Health check configuration
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=3", "--spider", "http://localhost:4321/api/health"]
|
||||
interval: 30s # Check interval
|
||||
timeout: 10s # Check timeout
|
||||
retries: 5 # Allowed retries
|
||||
start_period: 15s # Initial delay before checks
|
Reference in New Issue
Block a user