added gitea

This commit is contained in:
venus
2026-03-31 01:46:07 -05:00
parent fdb67c724f
commit 9e93196f17
4 changed files with 55 additions and 12 deletions

View File

@@ -1,7 +1,9 @@
networks:
gitea:
external: false
proxy:
external: true
services:
server:
@@ -13,11 +15,19 @@ services:
restart: always
networks:
- gitea
- proxy
volumes:
- ./data/:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "222:22"
- "22:22"
labels:
- ""
- "traefik.enable=true"
- "traefik.http.routers.gitea.rule=Host(`git.riverrooks.dev`)"
- "traefik.http.routers.gitea.entrypoints=websecure"
- "traefik.http.routers.gitea.tls.certresolver=myresolver"
# Explicitly tell Traefik to send the web traffic to internal port 3000
- "traefik.http.services.gitea.loadbalancer.server.port=3000"
# Tell Traefik to exclusively use the 'proxy' network to route traffic
- "traefik.docker.network=proxy"