First push from proxy (docker host) to gitea

This commit is contained in:
root 2023-05-08 16:35:25 +00:00
commit a69fa8cc56
25 changed files with 781 additions and 0 deletions

4
gitea/Dockerfile Normal file
View file

@ -0,0 +1,4 @@
FROM alpine/git:latest
WORKDIR /git
VOLUME /git/notebook.git
CMD ["init", "--bare", "notebook.git"]

35
gitea/docker-compose.yml Normal file
View file

@ -0,0 +1,35 @@
version: "3"
services:
gitbox:
image: gitea/gitea:latest
container_name: gitea
hostname: gitbox
restart: unless-stopped
volumes:
- /root/gitea/data:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
networks:
- backend
- proxy
ports:
- "2222:22"
labels:
- "traefik.enable=true"
- "traefik.http.routers.gitbox.entrypoints=http"
- "traefik.http.routers.gitbox.rule=Host(`git.office.kh3group.com`)"
- "traefik.http.middlewares.gitbox-https-redirect.redirectscheme.scheme=https"
- "traefik.http.routers.gitbox.middlewares=gitbox-https-redirect"
- "traefik.http.routers.gitbox-secure.entrypoints=https"
- "traefik.http.routers.gitbox-secure.rule=Host(`git.office.kh3group.com`)||Host(`git.kh3group.com`)"
- "traefik.http.routers.gitbox-secure.tls=true"
- "traefik.http.routers.gitbox-secure.service=gitbox"
- "traefik.http.services.gitbox.loadbalancer.server.port=3000"
- "traefik.docker.network=proxy"
networks:
backend:
external: true
proxy:
external: true