This commit is contained in:
thumphrey 2026-01-15 21:02:13 +00:00
commit 49ecb53b29

35
docker-compose (1).yml Normal file
View File

@ -0,0 +1,35 @@
version: "3.9"
services:
db:
image: mariadb:10.11
container_name: gitea-db
restart: always
environment:
- MYSQL_ROOT_PASSWORD=supersecretroot
- MYSQL_DATABASE=gitea
- MYSQL_USER=gitea
- MYSQL_PASSWORD=supersecret
volumes:
- ./db:/var/lib/mysql
gitea:
image: gitea/gitea:1.22
container_name: gitea
restart: always
depends_on:
- db
environment:
- USER_UID=1000
- USER_GID=1000
- DB_TYPE=mysql
- DB_HOST=db:3306
- DB_NAME=gitea
- DB_USER=gitea
- DB_PASSWD=supersecret
- ROOT_URL=https://gitea.scp-hosting.com/
ports:
- "3000:3000" # Web UI
- "222:22" # SSH
volumes:
- ./data:/data