Switch from gitea to forgejo

This commit is contained in:
Bruno Postle 2026-04-16 00:56:46 +01:00
parent 502e497d92
commit f3288a232e

View file

@ -1,13 +1,13 @@
services: services:
gitea: forgejo:
image: docker.io/gitea/gitea:latest image: codeberg.org/forgejo/forgejo:10
container_name: ifcurl-gitea container_name: ifcurl-forgejo
restart: unless-stopped restart: unless-stopped
ports: ports:
- "3000:3000" # web UI - "3000:3000" # web UI
- "2222:22" # SSH (avoids conflict with host sshd on 22) - "2222:22" # SSH (avoids conflict with host sshd on 22)
volumes: volumes:
- gitea-data:/data - forgejo-data:/data
environment: environment:
# Run the container process as the current host user so files in the # Run the container process as the current host user so files in the
# volume are owned by you, not root. # volume are owned by you, not root.
@ -22,7 +22,7 @@ services:
GITEA__database__DB_TYPE: sqlite3 GITEA__database__DB_TYPE: sqlite3
GITEA__database__PATH: /data/gitea/gitea.db GITEA__database__PATH: /data/gitea/gitea.db
# Server: tell Gitea its own public URL so clone URLs are correct. # Server: tell Forgejo its own public URL so clone URLs are correct.
GITEA__server__HTTP_PORT: "3000" GITEA__server__HTTP_PORT: "3000"
GITEA__server__ROOT_URL: "http://localhost:3000" GITEA__server__ROOT_URL: "http://localhost:3000"
GITEA__server__SSH_PORT: "2222" GITEA__server__SSH_PORT: "2222"
@ -32,16 +32,16 @@ services:
GITEA__log__LEVEL: Warn GITEA__log__LEVEL: Warn
volumes: volumes:
gitea-data: forgejo-data:
name: ifcurl-gitea-data name: ifcurl-forgejo-data
# Usage: # Usage:
# podman-compose up -d start Gitea # podman-compose up -d start Forgejo
# podman-compose down stop (data preserved) # podman-compose down stop (data preserved)
# podman-compose down -v stop and wipe all data # podman-compose down -v stop and wipe all data
# #
# On first run, create an admin user: # On first run, create an admin user:
# podman exec --user git ifcurl-gitea gitea admin user create \ # podman exec --user git ifcurl-forgejo forgejo admin user create \
# --username admin --password admin1234 --email admin@localhost \ # --username admin --password admin1234 --email admin@localhost \
# --admin --must-change-password=false # --admin --must-change-password=false
# #