diff --git a/templates/gogs/0/docker-compose.yml b/templates/gogs/0/docker-compose.yml new file mode 100644 index 0000000..cc95838 --- /dev/null +++ b/templates/gogs/0/docker-compose.yml @@ -0,0 +1,14 @@ +gogs: + image: gogs/gogs:latest + ports: + - ${http_port}:3000 + - ${ssh_port}:22 + links: + - mysql:db + +mysql: + image: mysql:latest + ports: + - ${public_port}:3306 + environment: + MYSQL_ROOT_PASSWORD: ${mysql_password} diff --git a/templates/gogs/0/rancher-compose.yml b/templates/gogs/0/rancher-compose.yml new file mode 100644 index 0000000..7b5983b --- /dev/null +++ b/templates/gogs/0/rancher-compose.yml @@ -0,0 +1,33 @@ +.catalog: + name: "Gogs" + version: "v0.8.43" + description: "A painless self-hosted Git service" + uuid: gogs-0 + minimum_rancher_version: v0.51.0 + questions: + - variable: public_port + description: "public port to access the mysql server" + label: "Public Port" + required: true + default: "3306" + type: "int" + - variable: http_port + description: "http port to access gogs webui" + label: "Http Port" + required: true + default: "10080" + type: "int" + - variable: ssh_port + description: "ssh port to access gogs cli" + label: "Ssh Port" + required: true + default: "222" + type: "int" + - variable: mysql_password + description: "mysql root password" + label: "Mysql Password" + required: true + default: "password" + type: "string" + +gogs: diff --git a/templates/gogs/catalogIcon-gogs.png b/templates/gogs/catalogIcon-gogs.png new file mode 100644 index 0000000..efc606b Binary files /dev/null and b/templates/gogs/catalogIcon-gogs.png differ diff --git a/templates/gogs/config.yml b/templates/gogs/config.yml new file mode 100644 index 0000000..be2e008 --- /dev/null +++ b/templates/gogs/config.yml @@ -0,0 +1,5 @@ +name: Gogs +description: | + A painless self-hosted Git service +version: v0.8.43 +category: Git