This commit is contained in:
Kasra Bigdeli 2020-07-05 20:06:39 -04:00
parent fdd48de7e3
commit 12fe80b6ab
1 changed files with 19 additions and 42 deletions

View File

@ -5,16 +5,24 @@
"description": "The most powerful and extensible open source Wiki software", "description": "The most powerful and extensible open source Wiki software",
"dockerCompose": { "dockerCompose": {
"services": { "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": { "$$cap_appname": {
"containerHttpPort": "3000", "containerHttpPort": "3000",
"environment": { "environment": {
"DB_TYPE": "$$cap_DB_TYPE", "DB_TYPE": "postgres",
"DB_HOST": "$$cap_DB_HOST", "DB_HOST": "srv-captain--$$cap_appname-postgres",
"DB_PORT": "$$cap_DB_PORT", "DB_PORT": "5432",
"DB_USER": "$$cap_DB_USER", "DB_USER": "wikijs",
"DB_PASS": "$$cap_DB_PASS", "DB_PASS": "$$cap_DB_PASS",
"DB_NAME": "$$cap_DB_NAME", "DB_NAME": "wiki"
"DB_SSL": "$$cap_DB_SSL"
}, },
"image": "requarks/wiki:$$cap_version", "image": "requarks/wiki:$$cap_version",
"restart": "always", "restart": "always",
@ -38,46 +46,15 @@
"id": "$$cap_version" "id": "$$cap_version"
}, },
{ {
"label": "DB_TYPE", "label": "Postgres Version",
"description": "Type of database (mysql, postgres, mariadb, mssql or sqlite)", "defaultValue": "11-alpine",
"defaultValue": "mariadb", "id": "$$cap_postgres_version"
"id": "$$cap_DB_TYPE"
}, },
{ {
"label": "DB_HOST", "label": "Database Password",
"description": "Hostname or IP of the database",
"defaultValue": "localhost",
"id": "$$cap_DB_HOST"
},
{
"label": "DB_PORT",
"description": "Port of the database",
"defaultValue": "3306",
"id": "$$cap_DB_PORT"
},
{
"label": "DB_USER",
"description": "Username to connect to the database",
"defaultValue": "wiki-user",
"id": "$$cap_DB_USER"
},
{
"label": "DB_PASS",
"description": "Password to connect to the database", "description": "Password to connect to the database",
"defaultValue": "wiki-password", "defaultValue": "daTaBaSePaSsWorD",
"id": "$$cap_DB_PASS" "id": "$$cap_DB_PASS"
},
{
"label": "DB_NAME",
"description": "Database name",
"defaultValue": "wiki",
"id": "$$cap_DB_NAME"
},
{
"label": "DB_SSL",
"description": "Set to either 1 or true to enable. (optional, off if omitted)",
"defaultValue": "false",
"id": "$$cap_DB_SSL"
} }
] ]
} }