diff --git a/blueprints/typecho/docker-compose.yml b/blueprints/typecho/docker-compose.yml new file mode 100644 index 00000000..b94b5743 --- /dev/null +++ b/blueprints/typecho/docker-compose.yml @@ -0,0 +1,27 @@ +version: "3.8" +services: + typecho: + image: 80x86/typecho:latest + restart: unless-stopped + environment: + PHP_TZ: Asia/Shanghai + PHP_MAX_EXECUTION_TIME: 600 + volumes: + - typecho_data:/data + depends_on: + - db + + db: + image: mysql:5.7 + restart: unless-stopped + environment: + MYSQL_DATABASE: typecho + MYSQL_USER: typecho + MYSQL_PASSWORD: typecho_password + MYSQL_ROOT_PASSWORD: root_password + volumes: + - db_data:/var/lib/mysql + +volumes: + typecho_data: + db_data: \ No newline at end of file diff --git a/blueprints/typecho/template.toml b/blueprints/typecho/template.toml new file mode 100644 index 00000000..e9cdc1e9 --- /dev/null +++ b/blueprints/typecho/template.toml @@ -0,0 +1,13 @@ +[variables] +main_domain = "${domain}" +db_password = "${password:16}" +root_password = "${password:16}" + +[config] +env = {} +mounts = [] + +[[config.domains]] +serviceName = "typecho" +port = 80 +host = "${main_domain}" \ No newline at end of file diff --git a/blueprints/typecho/typecho.png b/blueprints/typecho/typecho.png new file mode 100644 index 00000000..7e8223a5 Binary files /dev/null and b/blueprints/typecho/typecho.png differ diff --git a/meta.json b/meta.json index 814a6fab..3fb26ed2 100644 --- a/meta.json +++ b/meta.json @@ -625,6 +625,23 @@ }, "tags": ["chatbot", "builder", "open-source"] }, + { + "id": "typecho", + "name": "Typecho", + "version": "stable", + "description": "Typecho 是一个轻量级的开源博客程序,基于 PHP 开发,支持多种数据库,简洁而强大。", + "logo": "typecho.png", + "links": { + "github": "https://github.com/typecho/typecho", + "website": "https://typecho.org/", + "docs": "http://docs.typecho.org" + }, + "tags": [ + "blog", + "cms", + "php" + ] + }, { "id": "gitea", "name": "Gitea",