mirror of
https://github.com/tubearchivist/tubearchivist-server.git
synced 2024-11-24 20:50:13 +00:00
add gitea
This commit is contained in:
parent
f8deb96a5c
commit
b6db36265d
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,6 +6,7 @@ config.json
|
||||
postgres.env
|
||||
tubearchivist.env
|
||||
umami.env
|
||||
gitea.env
|
||||
|
||||
# example hooks
|
||||
docker-hook.json
|
||||
|
@ -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
11
env/gitea.sample.env
vendored
Normal 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
|
BIN
tubearchivist/gitea/public/img/tube-archivist-logo-dark.png
Normal file
BIN
tubearchivist/gitea/public/img/tube-archivist-logo-dark.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
23
tubearchivist/gitea/templates/home.tmpl
Normal file
23
tubearchivist/gitea/templates/home.tmpl
Normal 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" .}}
|
Loading…
Reference in New Issue
Block a user