added gitea

master
meftimes 2023-08-02 20:22:46 -04:00
parent f45cb0a99e
commit 90544a4d95
3 changed files with 51 additions and 0 deletions

5
gitea/.env-gitea 100644
View File

@ -0,0 +1,5 @@
DB_TYPE=type
DB_HOST=hostname
DB_NAME=name
DB_USER=username
DB_PASSWD=password

View File

@ -0,0 +1,4 @@
POSTGRES_USER=username
POSTGRES_PASSWORD=password
POSTGRES_DB=database
POSTGRES_HOST=host

42
gitea/gitea.yml 100644
View File

@ -0,0 +1,42 @@
version: '3'
services:
postgres:
image: postgres
container_name: postgres
volumes:
- db:/var/lib/postgresql/data
env_file:
- .env-postgres
networks:
- backend
restart: unless-stopped
gitea:
image: gitea/gitea
container_name: gitea
env_file:
- .env-gitea
depends_on:
- postgres
volumes:
- git:/data
labels:
- "traefik.enable=true"
- "traefik.http.routers.gitea-websecure.entrypoints=websecure"
- "traefik.http.routers.gitea-websecure.rule=Host(`gitea.meftimes.com`)"
- "traefik.http.services.gitea-websecure.loadbalancer.server.port=3000"
networks:
- backend
- proxy
restart: unless-stopped
volumes:
git:
db:
networks:
proxy:
external: true
backend:
external: true