Add Gitea service
This commit is contained in:
@@ -5,12 +5,16 @@ networks:
|
||||
nextcloud-backend:
|
||||
openproject-frontend:
|
||||
openproject-backend:
|
||||
gitea-frontend:
|
||||
gitea-backend:
|
||||
|
||||
volumes:
|
||||
nextcloud-db:
|
||||
nextcloud:
|
||||
openproject-db:
|
||||
openproject:
|
||||
gitea-db:
|
||||
gitea:
|
||||
|
||||
x-op-restart-policy: &restart_policy
|
||||
restart: unless-stopped
|
||||
@@ -41,6 +45,7 @@ services:
|
||||
networks:
|
||||
- nextcloud-frontend
|
||||
- openproject-frontend
|
||||
- gitea-frontend
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
@@ -48,6 +53,8 @@ services:
|
||||
- nextcloud:/var/www/html:ro
|
||||
depends_on:
|
||||
- nextcloud
|
||||
- openproject
|
||||
- gitea
|
||||
|
||||
# NextCloud
|
||||
|
||||
@@ -78,6 +85,43 @@ services:
|
||||
volumes:
|
||||
- nextcloud-db:/var/lib/mysql
|
||||
|
||||
# Gitea
|
||||
|
||||
gitea:
|
||||
image: docker.gitea.com/gitea:1.25.2
|
||||
environment:
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
- GITEA__database__DB_TYPE=postgres
|
||||
- GITEA__database__HOST=gitea-db:5432
|
||||
- GITEA__database__NAME=gitea
|
||||
- GITEA__database__USER=gitea
|
||||
- GITEA__database__PASSWD=gitea
|
||||
restart: always
|
||||
networks:
|
||||
- gitea-frontend
|
||||
- gitea-backend
|
||||
volumes:
|
||||
- gitea:/data
|
||||
- /etc/timezone:/etc/timezones:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- "222:22"
|
||||
depends_on:
|
||||
- gitea-db
|
||||
|
||||
gitea-db:
|
||||
image: docker.io/library/postgres:14
|
||||
restart: always
|
||||
environment:
|
||||
- POSTGRES_USER=gitea
|
||||
- POSTGRES_PASSWORD=gitea
|
||||
- POSTGRES_DB=gitea
|
||||
networks:
|
||||
- gitea-backend
|
||||
volumes:
|
||||
- gitea-db:/var/lib/postgresql/data
|
||||
|
||||
# OpenProject
|
||||
|
||||
openproject:
|
||||
|
||||
Reference in New Issue
Block a user