Skip to content

Commit

Permalink
Discourse
Browse files Browse the repository at this point in the history
Vouu committed Nov 9, 2023
1 parent 68e98fd commit cc66787
Showing 7 changed files with 123 additions and 0 deletions.
114 changes: 114 additions & 0 deletions servapps/Discourse/cosmos-compose.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
{
"cosmos-installer": {
"post-install": [{
"type": "info",
"label": "The SSH port for this container is 222"
}]
},
"minVersion": "0.8.0",
"{ServiceName}-postgresql": {
"postgresql": {
"image": "docker.io/bitnami/postgresql:16",
"volumes": [{
"source": "postgresql_data",
"target": "/bitnami/postgresql",
"type": "volume"
}],
"environment": [
"ALLOW_EMPTY_PASSWORD=yes",
"POSTGRESQL_USERNAME=bn_discourse",
"POSTGRESQL_DATABASE=bitnami_discourse"
],
"container_name": "{ServiceName}-postgresql"
},
"{ServiceName}-redis": {
"image": "docker.io/bitnami/redis:7.0",
"environment": [
"ALLOW_EMPTY_PASSWORD=yes"
],
"volumes": [{
"source": "redis_data",
"target": "/bitnami/redis",
"type": "volume"
}],
"container_name": "{ServiceName}-redis"
},
"{ServiceName}-discourse": {
"image": "docker.io/bitnami/discourse:3",
"volumes": [{
"source": "discourse_data",
"target": "/bitnami/discourse",
"type": "volume"
}],
"networks": [
"{ServiceName}-postgresql",
"{ServiceName}-redis"
],
"environment": [
"ALLOW_EMPTY_PASSWORD=yes",
"DISCOURSE_HOST={Hostnames.{StaticServiceName}.{StaticServiceName}.host}",
"DISCOURSE_DATABASE_HOST=postgresql",
"DISCOURSE_DATABASE_PORT_NUMBER=5432",
"DISCOURSE_DATABASE_USER=bn_discourse",
"DISCOURSE_DATABASE_NAME=bitnami_discourse",
"DISCOURSE_REDIS_HOST=redis",
"DISCOURSE_REDIS_PORT_NUMBER=6379",
"POSTGRESQL_CLIENT_POSTGRES_USER=postgres",
"POSTGRESQL_CLIENT_CREATE_DATABASE_NAME=bitnami_discourse",
"POSTGRESQL_CLIENT_CREATE_DATABASE_EXTENSIONS=hstore,pg_trgm"
],
"container_name": "{ServiceName}-discourse"
},
"{ServiceName}-sidekiq": {
"image": "docker.io/bitnami/discourse:3",
"networks": [
"discourse"
],
"volumes": [{
"source": "sidekiq_data",
"target": "/bitnami/discourse",
"type": "volume"
}],
"command": "/opt/bitnami/scripts/discourse-sidekiq/run.sh",
"environment": [
"ALLOW_EMPTY_PASSWORD=yes",
"DISCOURSE_HOST={Hostnames.{StaticServiceName}.{StaticServiceName}.host}",
"DISCOURSE_DATABASE_HOST=postgresql",
"DISCOURSE_DATABASE_PORT_NUMBER=5432",
"DISCOURSE_DATABASE_USER=bn_discourse",
"DISCOURSE_DATABASE_NAME=bitnami_discourse",
"DISCOURSE_REDIS_HOST=redis",
"DISCOURSE_REDIS_PORT_NUMBER=6379"
],
"container_name": "{ServiceName}-sidekiq"
}
},
"volumes": {
"postgresql_data": {
"driver": "local"
},
"redis_data": {
"driver": "local"
},
"discourse_data": {
"driver": "local"
},
"sidekiq_data": {
"driver": "local"
}
},
"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
}
}]

}
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": ["development", "git", "repository management", "code collaboration", "issue tracking", "go", "self-hosted", "gitea"],
"repository": "https://github.com/bitnami/containers/blob/main/bitnami/discourse",
"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.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/2.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/3.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/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cc66787

Please sign in to comment.