mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-04 02:46:23 +00:00
updated gitea
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
# Gitea
|
||||||
|
|
||||||
|
Dockerhub: https://hub.docker.com/r/gitea/gitea
|
||||||
|
Docker Compose: https://docs.gitea.com/installation/install-with-docker-rootless/docker-compose.yml
|
||||||
|
|
||||||
|
Reverse Proxy Port: 3000
|
||||||
@@ -1,62 +1,21 @@
|
|||||||
################################################################################
|
version: '3.8'
|
||||||
# Gitea
|
|
||||||
# make sure you use the $PREFIX from .env for project_name
|
|
||||||
# docker-compose -p project_name up -d
|
|
||||||
#
|
|
||||||
# Importing directly to the db (phpmydadmin)
|
|
||||||
# you have to run the following in the container:
|
|
||||||
# php artisan bookstack:regenerate-permissions
|
|
||||||
#
|
|
||||||
# Version 1
|
|
||||||
################################################################################
|
|
||||||
version: '3.3'
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
gitea:
|
|
||||||
gitea-db:
|
|
||||||
|
|
||||||
networks:
|
|
||||||
admin_web:
|
|
||||||
external:
|
|
||||||
name: admin_web
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
gitea-db:
|
|
||||||
image: mariadb:${DB_V}
|
|
||||||
restart: always
|
|
||||||
volumes:
|
|
||||||
- gitea-db:/var/lib/mysql
|
|
||||||
networks:
|
|
||||||
- admin_web
|
|
||||||
environment:
|
|
||||||
MYSQL_ROOT_PASSWORD: ${GITEA_MYSQL_ROOT_PASSWORD}
|
|
||||||
MYSQL_USER: gitea
|
|
||||||
MYSQL_PASSWORD: ${GITEA_MYSQL_PASSWORD}
|
|
||||||
MYSQL_DATABASE: gitea
|
|
||||||
|
|
||||||
gitea:
|
gitea:
|
||||||
# https://hub.docker.com/r/gitea/gitea
|
image: ${GITEA_IMAGE:-gitea/gitea:latest}
|
||||||
image: gitea/gitea:${GITEA_V}
|
|
||||||
networks:
|
|
||||||
- admin_web
|
|
||||||
environment:
|
environment:
|
||||||
- USER_UID=1000
|
- USER_UID=1000
|
||||||
- USER_GID=1000
|
- USER_GID=1000
|
||||||
- DB_TYPE=mysql
|
- DB_TYPE=mysql
|
||||||
- DB_HOST=${PREFIX}_gitea-db:3306
|
- DB_HOST=${GITEA_DB_HOST:-gitea-mariadb:3306}
|
||||||
- DB_NAME=gitea
|
- DB_NAME=gitea
|
||||||
- DB_USER=gitea
|
- DB_USER=gitea
|
||||||
|
- SSH_DOMAIN=${GITEA_SSH_DOMAIN:-example.com}
|
||||||
|
- ENABLE_SWAGGER="true"
|
||||||
|
- MAX_RESPONSE_ITEMS="15"
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- gitea:/data
|
- ${VOL_PATH:-./data}/gitea:/data
|
||||||
- /etc/timezone:/etc/timezone:ro
|
|
||||||
- /etc/localtime:/etc/localtime:ro
|
|
||||||
ports:
|
ports:
|
||||||
- "${GITEA_PORT}:22"
|
- "${GITEA_PORT}:22"
|
||||||
labels:
|
|
||||||
- "traefik.enable=true"
|
|
||||||
- "traefik.http.routers.${PREFIX}_gitea.rule=Host(`${GITEA_DOMAIN_NAME}`)"
|
|
||||||
- "traefik.http.routers.${PREFIX}_gitea.entrypoints=websecure"
|
|
||||||
- "traefik.http.routers.${PREFIX}_gitea.tls.certresolver=letsencrypt"
|
|
||||||
- "traefik.http.services.${PREFIX}_gitea.loadbalancer.server.port=3000"
|
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
# Domains & Project
|
|
||||||
PREFIX=p1
|
|
||||||
GITEA_DOMAIN_NAME=gitea.nickyeoman.com
|
|
||||||
|
|
||||||
# Software versions
|
|
||||||
GITEA_V=1.11.4
|
|
||||||
GITEA_PORT=22
|
|
||||||
|
|
||||||
#passwords
|
|
||||||
GITEA_MYSQL_ROOT_PASSWORD=changeMe
|
|
||||||
GITEA_MYSQL_PASSWORD=changemeAlso
|
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
version: '3.4'
|
||||||
|
|
||||||
|
services:
|
||||||
|
gitea:
|
||||||
|
extends:
|
||||||
|
file: ${COOKBOOK}/gitea/docker-compose.yml
|
||||||
|
service: gitea
|
||||||
|
|
||||||
|
gitea-mariadb:
|
||||||
|
extends:
|
||||||
|
file: ${COOKBOOK}/mariadb/docker-compose.yml
|
||||||
|
service: mariadb
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
COOKBOOK=/git/docker-compose-cookbooks #HELP: cookbooks
|
||||||
|
VOL_PATH=./data #HELP: volpath
|
||||||
|
|
||||||
|
# Gitea
|
||||||
|
GITEA_IMAGE=gitea/gitea:latest
|
||||||
|
GITEA_DB_HOST=gitea-db:3306
|
||||||
|
GITEA_PORT=22
|
||||||
|
GITEA_SSH_DOMAIN=example.com
|
||||||
Reference in New Issue
Block a user