Remove mariadb for gitea and opengist
This commit is contained in:
@@ -1,69 +0,0 @@
|
|||||||
# Gitea Git Service with MariaDB Database Configuration
|
|
||||||
services:
|
|
||||||
# MariaDB Database Service
|
|
||||||
gitea_db:
|
|
||||||
# Basic container configuration
|
|
||||||
container_name: gitea_db
|
|
||||||
image: docker.io/library/mariadb:11.8.2
|
|
||||||
restart: unless-stopped
|
|
||||||
|
|
||||||
# Database optimization parameters
|
|
||||||
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --innodb-file-per-table=1 --skip-innodb-read-only-compressed
|
|
||||||
|
|
||||||
# Database credentials and configuration
|
|
||||||
environment:
|
|
||||||
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} # Root password
|
|
||||||
- MYSQL_USER=${MYSQL_USER} # Gitea database user
|
|
||||||
- MYSQL_PASSWORD=${MYSQL_PASSWORD} # Gitea user password
|
|
||||||
- MYSQL_DATABASE=${MYSQL_DATABASE} # Database name for Gitea
|
|
||||||
|
|
||||||
# Persistent storage configuration
|
|
||||||
volumes:
|
|
||||||
- ${APPDATA_PATH}/gitea/db:/var/lib/mysql
|
|
||||||
|
|
||||||
# Network port configuration
|
|
||||||
ports:
|
|
||||||
- ${DB_PORT}:3306 # Maps host port to MariaDB
|
|
||||||
|
|
||||||
# Health check configuration
|
|
||||||
healthcheck:
|
|
||||||
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
|
|
||||||
start_period: 10s # Initial delay before checks
|
|
||||||
interval: 10s # Check interval
|
|
||||||
timeout: 5s # Check timeout
|
|
||||||
retries: 3 # Allowed retries
|
|
||||||
|
|
||||||
# Gitea Server Service
|
|
||||||
gitea_server:
|
|
||||||
# Basic container configuration
|
|
||||||
container_name: gitea_server
|
|
||||||
image: docker.io/gitea/gitea:1.24.2-rootless
|
|
||||||
restart: unless-stopped
|
|
||||||
|
|
||||||
# Service dependencies
|
|
||||||
depends_on:
|
|
||||||
gitea_db:
|
|
||||||
condition: service_healthy # Requires healthy database
|
|
||||||
|
|
||||||
# Runtime configuration
|
|
||||||
user: ${PUID}:${PGID} # Runs as specified user/group
|
|
||||||
|
|
||||||
# Gitea configuration
|
|
||||||
environment:
|
|
||||||
- GITEA__database__DB_TYPE=mysql
|
|
||||||
- GITEA__database__HOST=gitea_db:3306
|
|
||||||
- GITEA__database__NAME=${MYSQL_DATABASE}
|
|
||||||
- GITEA__database__USER=${MYSQL_USER}
|
|
||||||
- GITEA__database__PASSWD=${MYSQL_PASSWORD}
|
|
||||||
|
|
||||||
# Persistent storage configuration
|
|
||||||
volumes:
|
|
||||||
- ${APPDATA_PATH}/gitea/config:/etc/gitea
|
|
||||||
- ${APPDATA_PATH}/gitea/data:/var/lib/gitea
|
|
||||||
- /etc/timezone:/etc/timezone:ro
|
|
||||||
- /etc/localtime:/etc/localtime:ro
|
|
||||||
|
|
||||||
# Network port configuration
|
|
||||||
ports:
|
|
||||||
- ${SERVER_PORT}:3000
|
|
||||||
- ${SSH_PORT}:22
|
|
@@ -1,82 +0,0 @@
|
|||||||
# OpenGist with MariaDB Configuration
|
|
||||||
services:
|
|
||||||
# MariaDB Database Service
|
|
||||||
opengist_db:
|
|
||||||
# Basic container configuration
|
|
||||||
container_name: opengist_db
|
|
||||||
image: docker.io/library/mariadb:11.8.2
|
|
||||||
restart: unless-stopped
|
|
||||||
|
|
||||||
# Database performance tuning
|
|
||||||
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --innodb-file-per-table=1 --skip-innodb-read-only-compressed
|
|
||||||
|
|
||||||
# Database credentials
|
|
||||||
environment:
|
|
||||||
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} # Root password
|
|
||||||
- MYSQL_USER=${MYSQL_USER} # Application username
|
|
||||||
- MYSQL_PASSWORD=${MYSQL_PASSWORD} # Application password
|
|
||||||
- MYSQL_DATABASE=${MYSQL_DATABASE} # Database name
|
|
||||||
|
|
||||||
# Persistent storage configuration
|
|
||||||
volumes:
|
|
||||||
- ${APPDATA_PATH}/opengist/db:/var/lib/mysql # Database files
|
|
||||||
|
|
||||||
# Network configuration
|
|
||||||
ports:
|
|
||||||
- ${DB_PORT}:3306 # MariaDB port
|
|
||||||
|
|
||||||
# Health monitoring
|
|
||||||
healthcheck:
|
|
||||||
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
|
|
||||||
interval: 10s # Check frequency
|
|
||||||
timeout: 5s # Timeout duration
|
|
||||||
retries: 3 # Retry attempts
|
|
||||||
start_period: 10s # Initial delay
|
|
||||||
|
|
||||||
# OpenGist Application Service
|
|
||||||
opengist_server:
|
|
||||||
# Basic container configuration
|
|
||||||
container_name: opengist_server
|
|
||||||
image: ghcr.io/thomiceli/opengist:1.10.0
|
|
||||||
restart: unless-stopped
|
|
||||||
|
|
||||||
# Service dependencies
|
|
||||||
depends_on:
|
|
||||||
opengist_db:
|
|
||||||
condition: service_healthy # Wait for healthy database
|
|
||||||
|
|
||||||
# Runtime configuration
|
|
||||||
environment:
|
|
||||||
# User and group IDs for file permissions
|
|
||||||
- UID=${UID} # User ID for file permissions
|
|
||||||
- GID=${GID} # Group ID for file permissions
|
|
||||||
|
|
||||||
# Database connection
|
|
||||||
- OG_DB_URI=mysql://${MYSQL_USER}:${MYSQL_PASSWORD}@opengist_db:3306/${MYSQL_DATABASE} # MariaDB connection string
|
|
||||||
|
|
||||||
# Application settings
|
|
||||||
- OG_EXTERNAL_URL=${OG_EXTERNAL_URL} # Public URL for OpenGist
|
|
||||||
- OG_SECRET_KEY=${OG_SECRET_KEY} # Encryption key for sessions
|
|
||||||
|
|
||||||
# Git protocol configuration
|
|
||||||
- OG_HTTP_GIT_ENABLED=${OG_HTTP_GIT_ENABLED} # Enable HTTP Git access
|
|
||||||
- OG_SSH_GIT_ENABLED=${OG_SSH_GIT_ENABLED} # Enable SSH Git access
|
|
||||||
|
|
||||||
# Gitea integration
|
|
||||||
- OG_GITEA_CLIENT_KEY=${OG_GITEA_CLIENT_KEY} # OAuth client key
|
|
||||||
- OG_GITEA_SECRET=${OG_GITEA_SECRET} # OAuth secret
|
|
||||||
- OG_GITEA_URL=${OG_GITEA_URL} # Gitea instance URL
|
|
||||||
- OG_GITEA_NAME=${OG_GITEA_NAME} # Gitea application name
|
|
||||||
|
|
||||||
# Customization
|
|
||||||
- OG_CUSTOM_STATIC_LINK_0_NAME=${OG_CUSTOM_STATIC_LINK_0_NAME} # Custom link name
|
|
||||||
- OG_CUSTOM_STATIC_LINK_0_PATH=${OG_CUSTOM_STATIC_LINK_0_PATH} # Custom link path
|
|
||||||
|
|
||||||
# Persistent storage configuration
|
|
||||||
volumes:
|
|
||||||
- ${APPDATA_PATH}/opengist/data:/opengist
|
|
||||||
|
|
||||||
# Network configuration
|
|
||||||
ports:
|
|
||||||
- ${SERVER_PORT}:6157 # Web interface port
|
|
||||||
- 2222:2222 # SSH port for Git operations
|
|
Reference in New Issue
Block a user