Skip to content

Commit

Permalink
Supports a variety of software (#90)
Browse files Browse the repository at this point in the history
* Supports a variety of software

* Update tag
  • Loading branch information
vncloudsco authored Nov 14, 2023
1 parent e6cdde5 commit b867cc3
Show file tree
Hide file tree
Showing 71 changed files with 1,512 additions and 0 deletions.
162 changes: 162 additions & 0 deletions servapps/Discourse/cosmos-compose.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
{
"cosmos-installer": {
"form": [
{
"name": "DISCOURSE_USERNAME",
"label": "What is your discourse user login?",
"initialValue": "Tinyactive",
"type": "text"
},
{
"name": "DISCOURSE_PASSWORD",
"label": "What discourse password does it use?",
"initialValue": "fd4y3Sb4VnUbegrD",
"type": "password"
}
]
},
"minVersion": "0.9.0",
"services": {
"{ServiceName}": {
"image": "bitnami/discourse:latest",
"container_name": "{ServiceName}",
"hostname": "{ServiceName}",
"restart": "unless-stopped",
"environment": [
"DISCOURSE_HOST={Hostnames.{StaticServiceName}.{StaticServiceName}.host}",
"DISCOURSE_PASSWORD={Context.DISCOURSE_PASSWORD}",
"DISCOURSE_USERNAME={Context.DISCOURSE_USERNAME}",
"DISCOURSE_DATABASE_HOST={ServiceName}-postgres",
"DISCOURSE_DATABASE_PORT_NUMBER=5432",
"DISCOURSE_DATABASE_USER=discourse",
"DISCOURSE_DATABASE_NAME=discourse",
"DISCOURSE_DATABASE_PASSWORD={Passwords.0}",
"DISCOURSE_REDIS_HOST={ServiceName}-redis",
"DISCOURSE_REDIS_PORT_NUMBER=6379",
"DISCOURSE_REDIS_PASSWORD={Passwords.1}"
],
"labels": {
"cosmos-persistent-env": "DISCOURSE_DATABASE_HOST, DISCOURSE_DATABASE_NAME, DISCOURSE_DATABASE_PASSWORD, DISCOURSE_REDIS_PASSWORD",
"cosmos-force-network-secured": "true",
"cosmos-auto-update": "true",
"cosmos-icon": "https://comos.manhtuong.net/servapps/Odoo/icon.png"
},
"networks": {
"{ServiceName}-postgres": {}
},
"volumes": [
{
"source": "{ServiceName}-discourse_data",
"target": "/bitnami/discourse",
"type": "volume"
}
],
"routes": [
{
"name": "{ServiceName}",
"description": "Expose {ServiceName} to the web",
"useHost": true,
"target": "http://{ServiceName}:3000",
"mode": "SERVAPP",
"Timeout": 14400000,
"ThrottlePerMinute": 12000,
"BlockCommonBots": true,
"SmartShield": {
"Enabled": true
}
}
]
},
"{ServiceName}-sidekiq": {
"image": "bitnami/discourse:latest",
"container_name": "{ServiceName}-sidekiq",
"hostname": "{ServiceName}-sidekiq",
"restart": "unless-stopped",
"command": "/opt/bitnami/scripts/discourse-sidekiq/run.sh",
"environment": [
"DISCOURSE_HOST={Hostnames.{StaticServiceName}.{StaticServiceName}.host}",
"DISCOURSE_PASSWORD={Context.DISCOURSE_PASSWORD}",
"DISCOURSE_USERNAME={Context.DISCOURSE_USERNAME}",
"DISCOURSE_DATABASE_HOST={ServiceName}-postgres",
"DISCOURSE_DATABASE_PORT_NUMBER=5432",
"DISCOURSE_DATABASE_USER=discourse",
"DISCOURSE_DATABASE_NAME=discourse",
"DISCOURSE_DATABASE_PASSWORD={Passwords.0}",
"DISCOURSE_REDIS_HOST={ServiceName}-redis",
"DISCOURSE_REDIS_PORT_NUMBER=6379",
"DISCOURSE_REDIS_PASSWORD={Passwords.1}"
],
"labels": {
"cosmos-persistent-env": "DISCOURSE_DATABASE_HOST, DISCOURSE_DATABASE_NAME, DISCOURSE_DATABASE_PASSWORD, DISCOURSE_REDIS_PASSWORD",
"cosmos-force-network-secured": "true",
"cosmos-auto-update": "true",
"cosmos-icon": "https://comos.manhtuong.net/servapps/Odoo/icon.png"
},
"networks": {
"{ServiceName}-postgres": {}
},
"volumes": [
{
"source": "{ServiceName}-sidekiq_data",
"target": "/bitnami/discourse",
"type": "volume"
}
]
},
"{ServiceName}-postgres": {
"image": "postgres:15-alpine",
"container_name": "{ServiceName}-postgres",
"hostname": "{ServiceName}-postgres",
"restart": "unless-stopped",
"networks": {
"{ServiceName}-postgres": {}
},
"stop_grace_period": 5,
"security_opt": [
"seccomp:unconfined",
"apparmor:unconfined"
],
"volumes": [
{
"source": "{ServiceName}-postgres-data",
"target": "/var/lib/postgresql/data",
"type": "volume"
}
],
"labels": {
"cosmos-persistent-env": "POSTGRES_DB, POSTGRES_USER, POSTGRES_PASSWORD"
},
"environment": [
"POSTGRES_DB=discourse",
"POSTGRES_USER=discourse",
"POSTGRES_PASSWORD={Passwords.0}"
]
},
"{ServiceName}-redis": {
"image": "bitnami/redis:7.0",
"container_name": "{ServiceName}-redis",
"hostname": "{ServiceName}-redis",
"restart": "unless-stopped",
"networks": {
"{ServiceName}-postgres": {}
},
"volumes": [
{
"source": "{ServiceName}-redis",
"target": "/bitnami/redis",
"type": "volume"
}
],
"labels": {
"cosmos-persistent-env": "DISCOURSE_REDIS_PASSWORD"
},
"environment": [
"REDIS_PASSWORD={Passwords.1}"
]
}
},
"networks": {
"{ServiceName}-postgres": {
}
}
}
9 changes: 9 additions & 0 deletions servapps/Discourse/description.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "Discourse",
"longDescription": "<p>Discourse is an open source Internet forum system. Features include threading, categorization and tagging of discussions, configurable access control, live updates, expanding link previews, infinite scrolling, and real-time notifications. It is customizable via its plugin architecture and its theming system.</p>",
"description": "Discourse is modern forum software for your community. Use it as a mailing list, discussion forum, long-form chat room, and more!.",
"tags": ["forum", "self-hosted"],
"repository": "https://github.com/bitnami/containers/",
"image": "https://hub.docker.com/r/bitnami/Discourse",
"supported_architectures": ["amd64", "arm64"]
}
Binary file added servapps/Discourse/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added servapps/Discourse/screenshots/1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added servapps/Discourse/screenshots/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
63 changes: 63 additions & 0 deletions servapps/Dokuwiki/cosmos-compose.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"cosmos-installer": {
"form": [{
"name": "DOKUWIKI_USERNAME",
"label": "What Dokuwiki do you want to use?",
"initialValue": "admin",
"type": "text"
},
{
"name": "DOKUWIKI_PASSWORD",
"label": "What Dokuwiki admin password do you want?",
"initialValue": "password",
"type": "password"
},
{
"name": "DOKUWIKI_EMAIL",
"label": "What Dokuwiki admin email do you want?",
"initialValue": "admin@Dokuwiki.com",
"type": "text"
}
]
},
"minVersion": "0.8.0",
"services": {
"{ServiceName}": {
"container_name": "{ServiceName}",
"hostname": "{ServiceName}",
"image": "docker.io/bitnami/dokuwiki",
"environment": [
"DOKUWIKI_USERNAME={Context.DOKUWIKI_USERNAME}",
"DOKUWIKI_PASSWORD={Context.DOKUWIKI_PASSWORD}",
"DOKUWIKI_EMAIL={Context.DOKUWIKI_EMAIL}",
"PHP_ENABLE_OPCACHE=yes"
],
"volumes": [
{
"source": "{ServiceName}-dokuwiki_data",
"target": "/bitnami/dokuwiki",
"type": "volume"
}
],
"labels": {
"cosmos-persistent-env": "DOKUWIKI_USERNAME, DOKUWIKI_PASSWORD, DOKUWIKI_EMAIL, PHP_ENABLE_OPCACHE",
"cosmos-force-network-secured": "true",
"cosmos-auto-update": "true",
"cosmos-icon": "https://comos.manhtuong.net/servapps/Dokuwiki/icon.png"
},
"routes": [{
"name": "{ServiceName}",
"description": "Expose {ServiceName} to the web",
"useHost": true,
"target": "http://{ServiceName}:8080",
"mode": "SERVAPP",
"Timeout": 14400000,
"ThrottlePerMinute": 12000,
"BlockCommonBots": true,
"SmartShield": {
"Enabled": true
}
}]
}
}
}
9 changes: 9 additions & 0 deletions servapps/Dokuwiki/description.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "Dokuwiki",
"longDescription": "<p>DokuWiki is an open source wiki application licensed under GPLv2 and written in the PHP programming language. It works on plain text files and thus does not need a database. Its syntax is similar to the one used by MediaWiki. It is often recommended as a more lightweight, easier to customize alternative to MediaWiki.</p>",
"description": "DokuWiki. DokuWiki is a simple to use and highly versatile Open Source wiki software that doesn't require a database.",
"tags": ["wiki", "note", "self-hosted"],
"repository": "https://github.com/bitnami/containers/",
"image": "https://hub.docker.com/r/bitnami/dokuwiki",
"supported_architectures": ["amd64", "arm64"]
}
Binary file added servapps/Dokuwiki/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added servapps/Dokuwiki/screenshots/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added servapps/Dokuwiki/screenshots/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions servapps/Drone/cosmos-compose.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"cosmos-installer": {},
"minVersion": "0.8.0-unstable9",
"services": {
"{ServiceName}": {
"image": "drone/drone",
"container_name": "{ServiceName}",
"hostname": "{ServiceName}",
"restart": "unless-stopped",
"environment": [
"TZ=auto",
"DRONE_SERVER_PROTO=https",
"DRONE_SERVER_HOST={Hostnames.{StaticServiceName}.{StaticServiceName}.host}",
"DRONE_RPC_SECRET={Passwords.0}",
"USER_GID=1000"
],
"labels": {
"cosmos-persistent-env": "DRONE_SERVER_PROTO, DRONE_SERVER_HOST, DRONE_RPC_SECRET",
"cosmos-network-name": "AUTO",
"cosmos-auto-update": "true",
"cosmos-icon": "https://comos.manhtuong.net//servapps/Drone/icon.png"
},
"volumes": [{
"source": "{ServiceName}-data",
"target": "/data",
"type": "volume"
}],
"routes": [{
"name": "{ServiceName}",
"description": "Expose {ServiceName} to the web",
"useHost": true,
"target": "http://{ServiceName}:80",
"mode": "SERVAPP",
"Timeout": 14400000,
"ThrottlePerMinute": 12000,
"BlockCommonBots": true,
"SmartShield": {
"Enabled": true
}
}]
}
}
}
9 changes: 9 additions & 0 deletions servapps/Drone/description.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "Drone",
"longDescription": "<p>Drone CI is an open-source CI server acquired by Harness. It is used to build and test software, either on a developer's local machine or in a continuous integration environment like any public cloud.</p><p>With Drone, you can automate your software delivery pipeline from code commit to production.</p><p>In addition to building software, Drone allows you to build, test, and deploy your applications.</p><p>Drone CI is considered a modern CI tool as it uses the declarative approach in the form of YAML files to automate tests and extensively employs Docker containers at every step. The build pipelines take less time, and it is easy to set up and run.</p>",
"description": "Drone by Harness™ is a modern Continuous Integration platform that empowers busy teams to automate their build, test and release workflows using a powerful, cloud native pipeline engine.",
"tags": ["development", "git", "repository management", "code collaboration", "issue tracking", "self-hosted"],
"repository": "https://www.drone.io/",
"image": "https://hub.docker.com/r/drone/drone",
"supported_architectures": ["amd64", "arm64"]
}
Binary file added servapps/Drone/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added servapps/Drone/screenshots/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added servapps/Drone/screenshots/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit b867cc3

Please sign in to comment.