add gitea

This commit is contained in:
simon 2022-05-21 12:39:10 +07:00
parent f8deb96a5c
commit b6db36265d
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
5 changed files with 72 additions and 2 deletions

1
.gitignore vendored
View File

@ -6,6 +6,7 @@ config.json
postgres.env
tubearchivist.env
umami.env
gitea.env
# example hooks
docker-hook.json

View File

@ -16,6 +16,7 @@ services:
- front
- tubearchivist_network
- umami_network
- gitea_network
nginx-proxy-acme:
image: nginxproxy/acme-companion
container_name: nginx-proxy-acme
@ -87,8 +88,8 @@ services:
env_file:
- ./env/umami.env
environment:
- VIRTUAL_HOST=www.stats.tubearchivist.com
- LETSENCRYPT_HOST=www.stats.tubearchivist.com
- VIRTUAL_HOST=www.stats.tubearchivist.com,stats.tubearchivist.com
- LETSENCRYPT_HOST=www.stats.tubearchivist.com,stats.tubearchivist.com
depends_on:
- umami-db
restart: always
@ -105,6 +106,38 @@ services:
restart: always
networks:
- umami_network
# gitea
gitea:
image: gitea/gitea
container_name: gitea
hostname: gitea
env_file:
- ./env/gitea.env
environment:
- VIRTUAL_HOST=git.tubearchivist.com,www.git.tubearchivist.com
- LETSENCRYPT_HOST=git.tubearchivist.com,www.git.tubearchivist.com
- VIRTUAL_PORT=3000
restart: always
volumes:
- ./volume/gitea/data:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
expose:
- "3000"
ports:
- '127.0.0.1:22:22'
networks:
- gitea_network
gitea-db:
image: postgres:14
container_name: gitea-db
restart: always
env_file:
- ./env/gitea.env
volumes:
- ./volume/gitea/db:/var/lib/postgresql/data
networks:
- gitea_network
networks:
front:
@ -113,3 +146,5 @@ networks:
driver: bridge
umami_network:
driver: bridge
gitea_network:
driver: bridge

11
env/gitea.sample.env vendored Normal file
View File

@ -0,0 +1,11 @@
USER_UID=1000
USER_GID=1000
DB_TYPE=postgres
DB_HOST=gitea-db:5432
DB_NAME=gitea
DB_USER=gitea
DB_PASSWD=xxxxxxxxxxxxxxx
POSTGRES_USER=gitea
POSTGRES_PASSWORD=xxxxxxxxxxxxxxx
POSTGRES_DB=gitea

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -0,0 +1,23 @@
{{template "base/head" .}}
<div class="page-content home">
<div class="ui stackable middle very relaxed page grid">
<div class="sixteen wide center aligned centered column">
<div>
<img class="logo" width="220" height="220" src="{{AssetUrlPrefix}}/img/tube-archivist-logo-dark.png"/>
</div>
<div class="hero">
<h1 class="ui icon header title">
{{AppName}}
</h1>
<h2>Your self hosted YouTube media server</h2>
</div>
</div>
</div>
<div class="ui stackable middle very relaxed page grid">
<div class="sixteen wide center aligned centered column">
<h3>A mirror of all repos.</h3>
<a src="https://github.com/tubearchivist">GitHub</a>
</div>
</div>
</div>
{{template "base/footer" .}}