add gitea

This commit is contained in:
Florent Guiotte 2024-11-10 17:58:00 +01:00
parent 9ce3f4acf5
commit 83b7515da7
5 changed files with 49 additions and 1 deletions

View File

@ -25,3 +25,5 @@ sync.guiotte.fr. IN CNAME dm.guiotte.fr.
pad.guiotte.fr. IN CNAME dm.guiotte.fr. pad.guiotte.fr. IN CNAME dm.guiotte.fr.
home.guiotte.fr. IN CNAME dm.guiotte.fr. home.guiotte.fr. IN CNAME dm.guiotte.fr.
zotero.guiotte.fr. IN CNAME dm.guiotte.fr. zotero.guiotte.fr. IN CNAME dm.guiotte.fr.
git.guiotte.fr. IN CNAME dm.guiotte.fr.
git-old.guiotte.fr. IN CNAME dm.guiotte.fr.

Binary file not shown.

View File

@ -46,7 +46,8 @@ services:
environment: *common-environment environment: *common-environment
volumes: volumes:
- ./ddclient:/config - ./ddclient:/config
- ddclient-cache:/var/cache/ddclient - ddclient-cache:/run/ddclient-cache
#- ddclient-cache:/var/cache/ddclient
money: money:
@ -307,6 +308,44 @@ services:
# - 55443:55443 # - 55443:55443
restart: unless-stopped restart: unless-stopped
gitea:
image: gitea/gitea:latest
#build: gitea
container_name: gitea
restart: unless-stopped
environment:
<<: *common-environment
GITEA__database__DB_TYPE: mysql
GITEA__database__HOST: gitea-db:3306
GITEA__database__NAME: gitea
GITEA__database__USER: gitea
GITEA__database__PASSWD: gitea
GITEA__service__DISABLE_REGISTRATION: true
GITEA__server__DOMAIN: git.guiotte.fr
GITEA__server__SSH_DOMAIN: git.guiotte.fr
GITEA__server__LANDING_PAGE: explore
depends_on:
- gitea-db
volumes:
- gitea-data:/data
gitea-db:
image: linuxserver/mariadb:latest
container_name: gitea-db
restart: unless-stopped
environment:
<<: *common-environment
FILE__MYSQL_ROOT_PASSWORD: /run/secrets/gitea-db-root-pw
FILE__MYSQL_PASSWORD: /run/secrets/gitea-db-pw
MYSQL_DATABASE: gitea
MYSQL_USER: gitea
volumes:
- gitea-db:/config
secrets:
- gitea-db-root-pw
- gitea-db-pw
volumes: volumes:
money-data: money-data:
@ -324,6 +363,9 @@ volumes:
hedgedoc-db: hedgedoc-db:
homeassistant-config: homeassistant-config:
zotero-sync-data: zotero-sync-data:
gitea-data:
gitea-db:
secrets: secrets:
@ -343,3 +385,7 @@ secrets:
file: hedgedoc-db-root-pw.secret file: hedgedoc-db-root-pw.secret
hedgedoc-db-pw: hedgedoc-db-pw:
file: hedgedoc-db-pw.secret file: hedgedoc-db-pw.secret
gitea-db-root-pw:
file: gitea-db-root-pw.secret
gitea-db-pw:
file: gitea-db-pw.secret

BIN
gitea-db-pw.secret Normal file

Binary file not shown.

BIN
gitea-db-root-pw.secret Normal file

Binary file not shown.