summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGrega Vrbančič <[email protected]>2019-02-09 07:11:08 +0100
committerKasra Bigdeli <[email protected]>2019-02-08 22:11:08 -0800
commit2f78b1991d1df0aecb24a6106acd27f7cf33c741 (patch)
treef1e0321bbe8c04c33e6d621a32d4d5e7b00d814a
parent14b2aefc405a201d894986213af9330f74d5d856 (diff)
downloadcaprover-one-click-apps-2f78b1991d1df0aecb24a6106acd27f7cf33c741.tar.gz
caprover-one-click-apps-2f78b1991d1df0aecb24a6106acd27f7cf33c741.zip
Add Gitea template (#27)
* add Gitea template. * extend instructions.end text. * add Gitea template. * extend instructions.end text. * fix missing nodename issue. * Update README.md * Deployed pgAdmin * add Gitea template.
-rw-r--r--public/v1/apps/gitea.json66
1 files changed, 66 insertions, 0 deletions
diff --git a/public/v1/apps/gitea.json b/public/v1/apps/gitea.json
new file mode 100644
index 0000000..d425323
--- /dev/null
+++ b/public/v1/apps/gitea.json
@@ -0,0 +1,66 @@
+{
+ "captainVersion": "1",
+ "documentation": "Taken from https://hub.docker.com/r/gitea/gitea/",
+ "dockerCompose": {
+ "version": "2",
+ "services": {
+ "$$cap_appname-db": {
+ "image": "mysql:$$cap_mysql_version",
+ "notExposeAsWebApp": "true",
+ "volumes": [
+ "$$cap_appname-db-data:/var/lib/mysql"
+ ],
+ "restart": "always",
+ "environment": {
+ "MYSQL_ROOT_PASSWORD": "$$cap_db_pass",
+ "MYSQL_DATABASE": "gitea",
+ "MYSQL_USER": "gitea",
+ "MYSQL_PASSWORD": "$$cap_db_pass"
+ }
+ },
+ "$$cap_appname-gitea": {
+ "depends_on": [
+ "$$cap_appname-db"
+ ],
+ "image": "gitea/gitea:$$cap_gitea_version",
+ "containerHttpPort": "3000",
+ "volumes": [
+ "$$cap_appname-data:/data"
+ ],
+ "restart": "always",
+ "environment": {
+ "RUN_MODE": "prod",
+ "DB_TYPE": "mysql",
+ "DB_HOST": "srv-captain--$$cap_appname-db:3306",
+ "DB_USER": "gitea",
+ "DB_PASSWD": "$$cap_db_pass"
+ }
+ }
+ }
+ },
+ "instructions": {
+ "start": "A painless self-hosted Git service. Gitea is a community managed fork of Gogs.\n\n Enter your Gitea Configuration parameters and click on next. A MySQL (database) and a Gitea container will be created for you. The process will take about a minute to finish.",
+ "end": "Gitea is deployed and available as $$cap_appname-gitea.\n\n Since Gitea is running inside a container, you can optionally map a port (not 22) of the host to port 22 of the container, if you want to use git commands over SSH. You can perform port mapping in your CapRover dashboard, in App Config section.\n\n IMPORTANT: It will take up to 2 minutes for Gitea to be ready. Before that, you might see 502 error page.\n"
+ },
+ "variables": [{
+ "id": "$$cap_db_pass",
+ "label": "MySQL Root password",
+ "description": "",
+ "validRegex": "/.{1,}/"
+ },
+ {
+ "id": "$$cap_gitea_version",
+ "label": "Gitea Version",
+ "defaultValue": "1.7",
+ "description": "Checkout their docker page for the valid tags https://hub.docker.com/r/gitea/gitea/tags",
+ "validRegex": "/^([^\\s^\\/])+$/"
+ },
+ {
+ "id": "$$cap_mysql_version",
+ "label": "MySQL Version",
+ "defaultValue": "5.7",
+ "description": "Checkout their docker page for the valid tags https://hub.docker.com/r/library/mysql/tags/",
+ "validRegex": "/^([^\\s^\\/])+$/"
+ }
+ ]
+} \ No newline at end of file