diff --git a/templates/gitea/0/docker-compose.yml b/templates/gitea/0/docker-compose.yml new file mode 100644 index 0000000..889f169 --- /dev/null +++ b/templates/gitea/0/docker-compose.yml @@ -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 diff --git a/templates/gitea/0/rancher-compose.yml b/templates/gitea/0/rancher-compose.yml new file mode 100644 index 0000000..3f3ab80 --- /dev/null +++ b/templates/gitea/0/rancher-compose.yml @@ -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} \ No newline at end of file diff --git a/templates/gitea/README.md b/templates/gitea/README.md new file mode 100644 index 0000000..8cde66c --- /dev/null +++ b/templates/gitea/README.md @@ -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 ''; +CREATE ROLE +postgres=# CREATE DATABASE gitea OWNER gitea; +CREATE DATABASE +postgres=# \q +$ diff --git a/templates/gitea/catalogIcon-gitea.svg b/templates/gitea/catalogIcon-gitea.svg new file mode 100644 index 0000000..20b45e8 --- /dev/null +++ b/templates/gitea/catalogIcon-gitea.svg @@ -0,0 +1,50 @@ + + + + + + + + + + + + + diff --git a/templates/gitea/config.yml b/templates/gitea/config.yml new file mode 100644 index 0000000..baba210 --- /dev/null +++ b/templates/gitea/config.yml @@ -0,0 +1,6 @@ +name: gitea +description: Git Server with GUI +version: 1.4 +category: File Synchronisation +projectURL: none +