Initial commit (I feel unsafe)

This commit is contained in:
2026-01-16 00:11:58 -08:00
commit d69daa37bf
121 changed files with 4153 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
---
services:
gitea:
image: docker.gitea.com/gitea:1-rootless
container_name: gitea
pull_policy: always
restart: unless-stopped
volumes:
- ${VOLUME_PATH}/data:/var/lib/gitea
- ${VOLUME_PATH}/config:/etc/gitea
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- 127.0.0.1:${PORT}:3000
# - 2222:2222 # for internal SSH. unnecessary?
environment:
- GITEA__database__DB_TYPE=postgres
- GITEA__database__HOST=db:5432
- GITEA__database__NAME=gitea
- GITEA__database__USER=gitea
- GITEA__database__PASSWD=gitea
- USER=git
- USER_UID=${PUID}
- USER_GID=${PGID}
depends_on:
- db
user: ${PUID}:${PGID}
db:
image: postgres:16
container_name: gitea-postgres
pull_policy: always
restart: unless-stopped
environment:
- POSTGRES_USER=gitea
- POSTGRES_PASSWORD=gitea
- POSTGRES_DB=gitea
volumes:
- ${VOLUME_PATH}/postgres:/var/lib/postgresql/data
user: ${PUID}:${PGID}