deployed stvnliu.me/git

This commit is contained in:
steven@rockyserver 2026-10-18 17:56:52 +00:00
commit 3eb031d6ef
3 changed files with 31 additions and 1 deletions

View file

@ -1,3 +1,3 @@
include:
- path: ./vault/docker-compose.yml
- path: ./git/docker-compose.yml

3
domains/stvnliu.me/git/.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
git
gitea
ssh

View file

@ -0,0 +1,27 @@
networks:
proxy_net:
external: true
services:
forgejo-server:
image: codeberg.org/forgejo/forgejo:12
container_name: forgejo
environment:
- USER_UID=1000
- USER_GID=1000
restart: always
networks:
- proxy_net
volumes:
- .:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- '2222:22'
labels:
- traefik.enable=true
- traefik.http.routers.git-stvnliu-me.tls=true
- traefik.http.routers.git-stvnliu-me.entrypoints=websecure
- traefik.http.routers.git-stvnliu-me.rule=Host(`stvnliu.me`) && PathPrefix(`/git`)
- "traefik.http.middlewares.forgejo-strip.stripprefix.prefixes=/git"
- "traefik.http.routers.git-stvnliu-me.middlewares=forgejo-strip"
- traefik.http.services.git-stvnliu-me.loadbalancer.server.port=3000