62 lines
2.3 KiB
JSON
62 lines
2.3 KiB
JSON
{
|
|
"captainVersion": "2",
|
|
"documentation": "https://docs.requarks.io/",
|
|
"displayName": "wiki.js",
|
|
"description": "The most powerful and extensible open source Wiki software",
|
|
"isOfficial": true,
|
|
"dockerCompose": {
|
|
"services": {
|
|
"$$cap_appname-postgres": {
|
|
"image": "postgres:$$cap_postgres_version",
|
|
"environment": {
|
|
"POSTGRES_DB": "wiki",
|
|
"POSTGRES_PASSWORD": "$$cap_DB_PASS",
|
|
"POSTGRES_USER": "wikijs"
|
|
},
|
|
"volumes": ["$$cap_appname-db-data:/var/lib/postgresql/data"]
|
|
},
|
|
"$$cap_appname": {
|
|
"containerHttpPort": "3000",
|
|
"environment": {
|
|
"DB_TYPE": "postgres",
|
|
"DB_HOST": "srv-captain--$$cap_appname-postgres",
|
|
"DB_PORT": "5432",
|
|
"DB_USER": "wikijs",
|
|
"DB_PASS": "$$cap_DB_PASS",
|
|
"DB_NAME": "wiki"
|
|
},
|
|
"image": "requarks/wiki:$$cap_version",
|
|
"restart": "always",
|
|
"volumes": ["$$cap_appname-data:/wiki"]
|
|
}
|
|
},
|
|
"version": "2",
|
|
"volumes": {
|
|
"$$cap_appname-data": {}
|
|
}
|
|
},
|
|
"instructions": {
|
|
"end": "Wiki.js is deployed and available as $$cap_appname. \n\n IMPORTANT: It will take up to 2 minutes for Wiki.js to be ready. Before that, you might see 502 error page.\n",
|
|
"start": "Wiki.js is a fully open source, adaptable platform for building and running a Wiki."
|
|
},
|
|
"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": "Postgres Version",
|
|
"defaultValue": "11-alpine",
|
|
"id": "$$cap_postgres_version"
|
|
},
|
|
{
|
|
"label": "Database Password",
|
|
"description": "Password to connect to the database",
|
|
"defaultValue": "daTaBaSePaSsWorD",
|
|
"id": "$$cap_DB_PASS"
|
|
}
|
|
]
|
|
}
|