Add Typecho template (#165)

* Add Typecho template

* Resolve the Docker Compose error issue
This commit is contained in:
zhengpengxin
2025-06-20 12:25:12 +08:00
committed by GitHub
parent f55f521dd2
commit 961bb60620
4 changed files with 57 additions and 0 deletions

View File

@@ -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:

View File

@@ -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}"

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -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",