Add Gitea
This commit is contained in:
parent
02afb42366
commit
ecfa711711
76
templates/gitea/0/docker-compose.yml
Normal file
76
templates/gitea/0/docker-compose.yml
Normal file
@ -0,0 +1,76 @@
|
||||
version: '2'
|
||||
|
||||
services:
|
||||
|
||||
gitea:
|
||||
image: gitea/gitea:1.4
|
||||
volumes:
|
||||
- gitea:/data
|
||||
ports:
|
||||
- ${SSH_PORT}:22
|
||||
depends_on:
|
||||
- database
|
||||
links:
|
||||
- database:db
|
||||
labels:
|
||||
io.rancher.container.hostname_override: container_name
|
||||
service: 3000
|
||||
service: gitea
|
||||
|
||||
database:
|
||||
image: postgres:alpine
|
||||
volumes:
|
||||
- gitea-db:/var/lib/postgresql/data
|
||||
environment:
|
||||
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
||||
labels:
|
||||
io.rancher.container.hostname_override: container_name
|
||||
# io.rancher.scheduler.affinity:host_label: host.run=cm
|
||||
|
||||
letsencrypt:
|
||||
image: janeczku/rancher-letsencrypt:v0.5.0
|
||||
environment:
|
||||
API_VERSION: Production
|
||||
AWS_ACCESS_KEY: ''
|
||||
AWS_SECRET_KEY: ''
|
||||
AZURE_CLIENT_ID: ''
|
||||
AZURE_CLIENT_SECRET: ''
|
||||
AZURE_RESOURCE_GROUP: ''
|
||||
AZURE_SUBSCRIPTION_ID: ''
|
||||
AZURE_TENANT_ID: ''
|
||||
CERT_NAME: ${DOMAIN}
|
||||
CLOUDFLARE_EMAIL: ''
|
||||
CLOUDFLARE_KEY: ''
|
||||
DNSIMPLE_EMAIL: ''
|
||||
DNSIMPLE_KEY: ''
|
||||
DNS_RESOLVERS: 8.8.8.8:53,8.8.4.4:53
|
||||
DOMAINS: ${DOMAIN}
|
||||
DO_ACCESS_TOKEN: ''
|
||||
DYN_CUSTOMER_NAME: ''
|
||||
DYN_PASSWORD: ''
|
||||
DYN_USER_NAME: ''
|
||||
EMAIL: s.hoffmann@hoffmann-hosting.de
|
||||
EULA: 'Yes'
|
||||
GANDI_API_KEY: ''
|
||||
OVH_APPLICATION_KEY: ''
|
||||
OVH_APPLICATION_SECRET: ''
|
||||
OVH_CONSUMER_KEY: ''
|
||||
PROVIDER: HTTP
|
||||
PUBLIC_KEY_TYPE: RSA-2048
|
||||
RENEWAL_PERIOD_DAYS: '20'
|
||||
RENEWAL_TIME: '12'
|
||||
VULTR_API_KEY: ''
|
||||
volumes:
|
||||
- /var/lib/rancher:/var/lib/rancher
|
||||
- zertifikate:/etc/letsencrypt
|
||||
labels:
|
||||
io.rancher.container.agent.role: environment
|
||||
io.rancher.container.create_agent: 'true'
|
||||
service: letsencrypt
|
||||
volumes:
|
||||
gitea:
|
||||
driver: rancher-nfs
|
||||
gitea-db:
|
||||
driver: rancher-nfs
|
||||
zertifikate:
|
||||
driver: local
|
44
templates/gitea/0/rancher-compose.yml
Normal file
44
templates/gitea/0/rancher-compose.yml
Normal file
@ -0,0 +1,44 @@
|
||||
version: '2'
|
||||
|
||||
catalog:
|
||||
|
||||
name: gitea
|
||||
version: 1.4
|
||||
description: Gitea - Git Server with Web GUI
|
||||
questions:
|
||||
- variable: DB_PASSWORD
|
||||
label: Database Password
|
||||
required: true
|
||||
type: password
|
||||
- variable: DOMAIN
|
||||
default: your-domain.de
|
||||
label: Domain
|
||||
required: true
|
||||
type: string
|
||||
- variable: SSH_PORT
|
||||
default: 2222
|
||||
label: SSH Port
|
||||
required: true
|
||||
type: string
|
||||
|
||||
services:
|
||||
|
||||
gitea:
|
||||
scale: 1
|
||||
start_on_create: true
|
||||
lb_config:
|
||||
port_rules:
|
||||
- target_port: 3000
|
||||
hostname: ${DOMAIN}
|
||||
|
||||
database:
|
||||
scale: 1
|
||||
start_on_create: true
|
||||
|
||||
letsencrypt:
|
||||
scale: 1
|
||||
start_on_create: true
|
||||
lb_config:
|
||||
port_rules:
|
||||
- target_port: 80
|
||||
hostname: ${DOMAIN}
|
19
templates/gitea/README.md
Normal file
19
templates/gitea/README.md
Normal file
@ -0,0 +1,19 @@
|
||||
# Gitea
|
||||
|
||||
Git Server with Web GUI
|
||||
|
||||
## Configuration
|
||||
|
||||
|
||||
Now the database is up and running, we need to configure it. Make sure you remember the password for when Gitea starts.
|
||||
|
||||
$ docker exec -it gitea-db psql -U postgres
|
||||
psql (9.6.1)
|
||||
Type "help" for help.
|
||||
|
||||
postgres=# CREATE USER gitea WITH PASSWORD '<PASSWORD>';
|
||||
CREATE ROLE
|
||||
postgres=# CREATE DATABASE gitea OWNER gitea;
|
||||
CREATE DATABASE
|
||||
postgres=# \q
|
||||
$
|
50
templates/gitea/catalogIcon-gitea.svg
Normal file
50
templates/gitea/catalogIcon-gitea.svg
Normal file
@ -0,0 +1,50 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 22.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 400.2 400.2" style="enable-background:new 0 0 400.2 400.2;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#FEFEFE;}
|
||||
.st1{fill:#609826;}
|
||||
.st2{fill:#428F29;}
|
||||
.st3{fill:#438F2A;}
|
||||
</style>
|
||||
<g>
|
||||
<path class="st0" d="M200,400.1c-65.3,0-130.7,0-196,0.1c-3.6,0-4-0.9-4-4.2C0.1,265.4,0.1,134.7,0,4c0-3.6,0.9-4,4.2-4
|
||||
c130.7,0.1,261.3,0.1,392,0c3.6,0,4,0.9,4,4.2c-0.1,130.7-0.1,261.3,0,392c0,3.6-0.9,4-4.2,4C330.7,400.1,265.4,400.1,200,400.1z"
|
||||
/>
|
||||
<path class="st1" d="M215.2,104.3c5.7,0,11.3,0.2,17-0.1c3.3-0.1,3.8,1.2,3.8,4.1c-0.1,17.8,0,35.7,0,53.5c0,8.7,0,8.7,8.8,11.5
|
||||
c1.1-1.5,0.5-3.2,0.5-4.7c0-19.8,0.1-39.7-0.1-59.5c0-3.9,0.9-5.5,4.9-5c2.6,0.3,5.3,0.1,8,0.2c-1.1,3-3.7,1.2-5.1,1.8
|
||||
c26.1-0.6,52.5-1.6,78.9-3.3c12.9-0.8,25.9-1.1,38.9-1.9c5.5-0.3,8.5,3.3,10.5,7.8c2.4,5.4,3,11.3,3.3,17.1
|
||||
c0.7,14.2-1,28.2-3.4,42.2c-4.5,27-11.9,53.3-21.9,78.7c-6.8,17.4-14.9,34.2-25.7,49.5c-6.8,9.6-14.6,18.2-24.9,24.1
|
||||
c-6.3,3.7-13.3,5.1-20.6,5.1c-32.5,0-65-0.1-97.5,0c-8.6,0-16-2.7-22.8-7.6c-12.5-8.9-22-20.7-30.7-33.2
|
||||
c-5.2-7.5-10.2-15.3-13.4-23.9c-1.2-3.2-3.1-4.4-6.7-4.5c-17.6-0.7-34.7-3.8-50.9-11.2c-26.2-11.9-41.3-32.2-46.2-60.3
|
||||
c-2.3-13-2.8-26.1,0.9-39c7.1-25.1,23.9-39.7,49-45.1c8.7-1.9,17.6-1.4,26.4-0.5c7.8,0.8,15.6,1,23.4,1.2
|
||||
c15.8,0.4,31.6,1.7,47.3,2.5c20.8,1,41.5,1.8,62.3,2.2c-3.5-0.1-7,0-10.5-0.1C217.3,106,215.5,106.5,215.2,104.3z"/>
|
||||
<path class="st2" d="M215.2,104.3c4.7,1.7,9.5,0.4,14.3,0.8c1.7,0.2,3.5-0.5,5.2,0.8c-1.3,1.9-2.9,1.2-4.2,1.2
|
||||
c-11.7,0.1-23.4,0.7-35-0.1c-20.5-1.4-41.1-1.6-61.5-3.7c-7.6-0.8-15.3-0.5-22.9-0.8c-9.6-0.4-19.2-1.2-28.9-1.4
|
||||
c-27.9-0.6-55.1,18.9-60.6,47.1c-5.8,30.1-0.3,57.6,21.4,80.1c13,13.5,30.2,20.2,48.4,23.8c9.2,1.9,18.6,3.4,28.1,3.1
|
||||
c2.2-0.1,3.2,0.7,4,2.7c7.1,17.7,18,32.9,30.8,46.7c7.8,8.5,16.5,16.5,28.5,19c2,0.4,3.9,0.5,5.9,0.5c33.3,0,66.7,0,100,0
|
||||
c10.9,0,20-4.1,28-11.2c13.8-12.3,22.9-27.8,31-44.1c13.2-26.5,22.1-54.4,28.4-83.2c2.7-12.4,5.1-24.9,6.1-37.7
|
||||
c0.8-10.3,1.2-20.5-0.2-30.8c-0.5-3.7-1.6-7-3.5-10.3c-2.4-4.3-5.9-5.7-10.5-4.3c-2.1,0.6-4.3,0.4-6.4,0.5
|
||||
c-17.6,0.7-35.2,0.9-52.7,2.2c-20.1,1.4-40.1,2-60.3,1.8c-0.8,0-1.7,0.2-2.1-1.3c3.6-1.9,7.8,0.6,11.3-1.5
|
||||
c27.1-1.1,54.3-2.1,81.4-3.2c9.6-0.4,19.3-1.1,28.9-1.7c8.4-0.5,12.3,2.3,14.8,10.2c4.7,14.9,3.3,30,1.5,45.1
|
||||
c-4.2,35.2-13.7,69.1-27.6,101.7c-8.4,19.7-18.3,38.7-33.6,54.3c-10.1,10.4-21.7,16.8-37,16.5c-31.8-0.5-63.6-0.5-95.5,0
|
||||
c-11.4,0.2-20.4-4.2-28.5-11.1c-16.4-13.8-29.1-30.7-38.3-49.9c-3.2-6.6-6.4-8.3-13.3-8.7c-22.2-1.2-43.4-6.8-61.7-20.2
|
||||
c-19.5-14.3-29.4-34.3-31.9-58.1c-1.5-14.7-1.3-29.2,4.8-43.1c7.2-16.4,19.4-27.4,35.9-34c10.8-4.3,22-5,33.4-4.2
|
||||
C132.6,101,173.9,102.9,215.2,104.3z"/>
|
||||
<path class="st0" d="M245.7,293.1c-4.8-0.3-10.6-4.9-17-7.8c-16.1-7.5-32-15.5-48-23.1c-10.1-4.8-13.8-13.6-8.9-23.8
|
||||
c10.1-21.1,20.4-42.1,30.7-63.1c3.3-6.7,11.7-9.9,19.3-7.2c3.9,1.4,7.5,3.5,11.3,5.2c1.7,0.8,1.5,1.8,0.8,3.2
|
||||
c-2.2,4.3-4.4,8.6-6.3,13c-0.8,1.9-2.2,1.6-3.6,2c-6.3,2.1-8.9,6.8-6.9,13.2c0.7,2.3,1.1,4.4,0,6.7c-3.7,7.4-7.4,14.8-11,22.3
|
||||
c-1,2.1-2.2,3.2-4.7,3.8c-5.4,1.3-8.4,7.4-6.7,12.6c1.9,5.6,7.9,8.7,13.2,6.8c5.3-1.9,8.6-8.5,5.9-13.4c-1.9-3.6-1-6.2,0.5-9.2
|
||||
c2.4-4.7,5.2-9.3,7.1-14.3c1.9-5.2,4.7-8.8,10.4-9.9c0.9-0.2,1.6-1,2.7-0.4c5.6,2.8,11.6,5.1,16.6,9.1c2.4,1.9,2.3,4.7,1.7,7.4
|
||||
c-2.3,9.1-7.4,17-10.9,25.6c-0.5,1.3-1.9,1.1-3,1.4c-6.4,1.7-9.8,7.6-7.8,13.3c2.1,5.9,8.2,8.6,14.2,6c5.2-2.2,7.3-8.8,4.1-14.3
|
||||
c-1.1-1.9-0.7-3,0.1-4.5c3.6-6.9,6.9-14,9.6-21.3c4.2-11.4,1.4-18.7-9.6-24.2c-2.2-1.1-4.4-2.7-6.7-3.2c-5.6-1.2-5.9-6.4-8.3-10.1
|
||||
c-0.5-0.8-0.1-1.5,0.3-2.3c2-4,4.2-8,5.9-12.1c1.1-2.7,2.5-2.4,4.6-1.3c13.4,6.6,26.9,13,40.3,19.6c9.7,4.8,12.7,13.5,8,23.3
|
||||
c-10,20.8-20.2,41.5-30.3,62.2C260.2,290.4,255.2,293.3,245.7,293.1z"/>
|
||||
<path class="st3" d="M83.2,126.1c8,0,8.2,0,8.8,9.5c1.6,22.6,6.7,44.5,13.7,65.9c2.7,8.2,5.5,16.4,8.2,24.6
|
||||
c0.5,1.6,1.3,3.4-1.8,2.9c-13-1.9-25.7-4.5-37.6-10.6c-18.4-9.5-26.9-25.6-30.5-45.2c-1.5-8.1-0.6-15.7,2-23.4
|
||||
c4.5-13.2,14.4-19.8,27.4-22.4C76.8,126.5,80.2,125.4,83.2,126.1z"/>
|
||||
<path class="st0" d="M109.9,225.4c-12.8-1.8-25.1-4.7-36.4-11c-21.7-12.2-29.4-38.2-25.9-59.3C50,140.7,62,131,79,129.1
|
||||
c8.3-0.9,8.5-0.9,9.5,6.9c3.7,30,10.7,59.2,21.4,87.5C110.1,223.9,109.9,224.4,109.9,225.4z"/>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 4.4 KiB |
6
templates/gitea/config.yml
Normal file
6
templates/gitea/config.yml
Normal file
@ -0,0 +1,6 @@
|
||||
name: gitea
|
||||
description: Git Server with GUI
|
||||
version: 1.4
|
||||
category: File Synchronisation
|
||||
projectURL: none
|
||||
|
Loading…
Reference in New Issue
Block a user