Last active
April 18, 2021 23:20
-
-
Save hivivo/7a513b1ab6a98a1f3c4795f9b963cb5a to your computer and use it in GitHub Desktop.
CapRover OneClick App - Wiki.js (using remote DB)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
captainVersion: 4 | |
services: | |
$$cap_appname: | |
environment: | |
DB_TYPE: $$cap_DB_TYPE | |
DB_HOST: $$cap_DB_HOST | |
DB_PORT: $$cap_DB_PORT | |
DB_USER: $$cap_DB_USER | |
DB_PASS: $$cap_DB_PASS | |
DB_NAME: $$cap_DB_NAME | |
DB_SSL: $$cap_DB_SSL | |
image: requarks/wiki:$$cap_version | |
restart: always | |
volumes: | |
- $$cap_appname-data:/wiki | |
caproverExtra: | |
containerHttpPort: '3000' | |
caproverOneClickApp: | |
variables: | |
- label: Wiki.js Version | |
defaultValue: '2' | |
description: It's highly recommended that you don't use the latest tag but instead the major version you need, e.g. requarks/wiki:2 | |
id: $$cap_version | |
- label: Database Type | |
description: Type of database (mysql, postgres, mariadb, mssql or sqlite) | |
defaultValue: mysql | |
id: $$cap_DB_TYPE | |
- label: Database Host | |
description: Hostname or IP of the database | |
defaultValue: localhost | |
id: $$cap_DB_HOST | |
- label: Database Port | |
description: Port of the database | |
defaultValue: 3306 | |
id: $$cap_DB_PORT | |
- label: Database Username | |
description: Username to connect to the database | |
defaultValue: wikijs | |
id: $$cap_DB_USER | |
- label: Database Password | |
description: Password to connect to the database | |
defaultValue: daTaBaSePaSsWorD | |
id: $$cap_DB_PASS | |
- label: Database Name | |
description: Database name | |
defaultValue: wiki | |
id: $$cap_DB_NAME | |
- label: Database Uses SSL | |
description: Set to either 1 or true to enable. (optional, off if omitted) | |
defaultValue: false | |
id: $$cap_DB_SSL | |
instructions: | |
end: > | |
Wiki.js is deployed and available as $$cap_appname. | |
IMPORTANT: It will take up to 2 minutes for Wiki.js to be ready. Before that, you might see 502 error page. | |
start: Wiki.js is a fully open source, adaptable platform for building and running a Wiki. | |
displayName: wiki.js | |
isOfficial: false | |
description: The most powerful and extensible open source Wiki software | |
documentation: https://docs.requarks.io/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment