Add: gitea stack
This commit is contained in:
parent
79611b022d
commit
7d8761a349
8
gitea/docker-compose.expose.yml
Normal file
8
gitea/docker-compose.expose.yml
Normal file
@ -0,0 +1,8 @@
|
||||
|
||||
services:
|
||||
gitea:
|
||||
ports:
|
||||
- "$app_expose_ip:222:22"
|
||||
- "$app_expose_ip:80:80"
|
||||
|
||||
|
||||
29
gitea/docker-compose.mysql.yml
Normal file
29
gitea/docker-compose.mysql.yml
Normal file
@ -0,0 +1,29 @@
|
||||
|
||||
networks:
|
||||
db:
|
||||
|
||||
services:
|
||||
gitea:
|
||||
environment:
|
||||
- GITEA__database__DB_TYPE=mysql
|
||||
- GITEA__database__HOST=${mysql_host:-mysql}
|
||||
- GITEA__database__NAME=${mysql_user_db:-gitea}
|
||||
- GITEA__database__USER=${mysql_user_login:-gitea}
|
||||
- GITEA__database__PASSWD=${mysql_user_passwd:-gitea}
|
||||
networks:
|
||||
db:
|
||||
|
||||
mysql:
|
||||
image: mariadb:10
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- $app_dir_db_data:/var/lib/mysql
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: "${mysql_root_passwd:-gitea}"
|
||||
MYSQL_DATABASE: "${mysql_user_db:-gitea}"
|
||||
MYSQL_USER: "${mysql_user_login:-gitea}"
|
||||
MYSQL_PASSWORD: "${mysql_user_passwd:-gitea}"
|
||||
|
||||
networks:
|
||||
db:
|
||||
|
||||
31
gitea/docker-compose.yml
Normal file
31
gitea/docker-compose.yml
Normal file
@ -0,0 +1,31 @@
|
||||
version: '3.6'
|
||||
|
||||
networks:
|
||||
default:
|
||||
|
||||
services:
|
||||
gitea:
|
||||
image: gitea/gitea:${GITEA_VERSION:-1.16}
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
# https://docs.gitea.io/en-us/install-with-docker/#environments-variables
|
||||
- APP_NAME="Gitea"
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
|
||||
- GITEA__server__DOMAIN=$app_fqdn
|
||||
- GITEA__server__SSH_DOMAIN=$app_fqdn
|
||||
- GITEA__server__ROOT_URL=https://$app_fqdn
|
||||
|
||||
networks:
|
||||
default:
|
||||
volumes:
|
||||
- $app_dir_data:/data:rw
|
||||
#- $app_dir_data/repos:/data/git:rw
|
||||
#- $app_dir_data/var:/data/gitea:rw
|
||||
#- $app_dir_data/ssh:/data/ssh:rw
|
||||
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user