Intial repository commit

This commit is contained in:
2025-11-25 14:15:40 -05:00
commit 44c853f580
67 changed files with 34583 additions and 0 deletions

27
gitea/.gitignore vendored Normal file
View File

@@ -0,0 +1,27 @@
# Ignore environment file that contains sensitive information
.env
# Ignore any log files that may be generated by services
*.log
# Ignore temporary or backup files that might be created by editors
*.bak
*.swp
# Ignore docker-compose override files (local configurations, not meant to be versioned)
docker-compose.override.yml
# Ignore any database files that are mapped as volumes (persistent data)
config/
data/
mysql/
# Ignore any tmp or pid files that might be created during runtime
tmp/
*.pid
# Ignore any SQLite database files (if applicable)
*.sqlite
# Ignore any generated Nextcloud data files (if they're stored here instead of in volumes)
*.db

38
gitea/docker-compose.yml Normal file
View File

@@ -0,0 +1,38 @@
services:
server:
image: docker.gitea.com/gitea:latest-rootless
environment:
- GITEA__database__DB_TYPE=mysql
- GITEA__database__HOST=db:3306
- GITEA__database__NAME=gitea
- GITEA__database__USER=${GITEA__database__USER}
- GITEA__database__PASSWD=${GITEA__database__PASSWD}
restart: always
volumes:
- ./data:/var/lib/gitea
- ./config:/etc/gitea
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "2222:2222"
networks:
- 'default'
- 'homelab'
depends_on:
- db
db:
image: docker.io/library/mysql:8
restart: always
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
volumes:
- ./mysql:/var/lib/MySQL
networks:
homelab:
external: true