{"id":28378801,"url":"https://github.com/typecho/dockerfile","last_synced_at":"2025-06-26T21:30:48.257Z","repository":{"id":50268882,"uuid":"395546633","full_name":"typecho/Dockerfile","owner":"typecho","description":"Docker Image packaging for Typecho","archived":false,"fork":false,"pushed_at":"2025-06-03T03:32:38.000Z","size":59,"stargazers_count":102,"open_issues_count":9,"forks_count":13,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-06T02:38:54.732Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/joyqi/typecho","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/typecho.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-13T06:43:50.000Z","updated_at":"2025-06-03T03:32:40.000Z","dependencies_parsed_at":"2025-02-18T03:36:04.770Z","dependency_job_id":null,"html_url":"https://github.com/typecho/Dockerfile","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/typecho/Dockerfile","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typecho%2FDockerfile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typecho%2FDockerfile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typecho%2FDockerfile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typecho%2FDockerfile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/typecho","download_url":"https://codeload.github.com/typecho/Dockerfile/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typecho%2FDockerfile/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262145132,"owners_count":23265872,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-30T02:07:21.147Z","updated_at":"2025-06-26T21:30:48.252Z","avatar_url":"https://github.com/typecho.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Quick reference\n\n* Maintained by: [Typecho Dev Team](https://github.com/typecho)\n* Where to get help: [the Typecho Docker GitHub issues](https://github.com/typecho/Dockerfile/issues)\n\n# Supported tags and respective `Dockerfile` links\n\n* [nightly-php7.4, nightly-php7.4-cli, nightly-php7.4-fpm, nightly-php7.4-apache, nightly-php8.2, nightly-php8.2-cli, nightly-php8.2-fpm, nightly-php8.2-apache, nightly-php7.4-alpine, nightly-php7.4-cli-alpine, nightly-php7.4-fpm-alpine, nightly-php8.2-alpine, nightly-php8.2-cli-alpine, nightly-php8.2-fpm-alpine](https://github.com/typecho/Dockerfile)\n\n# How to use this image\n\n## Start via `docker run`\n\n```bash\n$ docker run --name typecho-server -e TYPECHO_SITE_URL=https://your-domain.com -d joyqi/typecho:nightly-php7.4-apache\n```\n\n## Start via `docker-compose`\n\n```yaml\nversion: '3.7'\n\nservices:\n  typecho:\n    image: joyqi/typecho:nightly-php7.4-apache\n    container_name: typecho-server\n    restart: always\n    environment:\n      - TYPECHO_SITE_URL=https://your-domain.com\n    ports:\n      - 8080:80\n    volumes:\n      - /var/typecho:/app/usr\n```\n\n1. Replace `your-domain.com` with your own domain name.\n2. Port `8080` is just an example, you can change it to any port you want.\n3. Mount local directory `/var/typecho` to container directory `/app/usr` for persistent data.\n\n# How to extend this image\n\n## Environment Variables\n\n| Name                    | Description                                                                                          |\n|-------------------------|------------------------------------------------------------------------------------------------------|\n| TIMEZONE                | default: `UTC`\u003cbr\u003eServer timezone, eg: `Asia/Shanghai`                                               |\n| MEMORY_LIMIT            | PHP memory limit, eg: `100M`                                                                         |\n| MAX_POST_BODY           | eg: `50M`                                                                                            |\n| TYPECHO_INSTALL         | default: `0`\u003cbr\u003eSet to `1` if you want to run installation script automatically.                      |\n| TYPECHO_DB_ADAPTER      | default: `Pdo_Mysql`\u003cbr\u003eDatabase driver for typecho, could be: `Pdo_Mysql`, `Pdo_SQLite`, `Pdo_Pgsql`, `Mysqli`, `SQLite`, `Pgsql`.|\n| TYPECHO_DB_HOST         | default: `localhost`\u003cbr\u003eDatabase server host, only available for mysql and pgsql drivers.             |\n| TYPECHO_DB_PORT         | default: `3306`(for mysql) or `5432`(for pgsql)\u003cbr\u003eDatabase server port, only available for mysql and pgsql drivers.|\n| TYPECHO_DB_USER         | `*` required for mysql and pgsql drivers\u003cbr\u003eDatabase username, only available for mysql and pgsql drivers.|\n| TYPECHO_DB_PASSWORD     | `*` required for mysql and pgsql drivers\u003cbr\u003eDatabase password, only available for mysql and pgsql drivers.|\n| TYPECHO_DB_FILE         | `*` required for sqlite driver\u003cbr\u003eDatabase file storage path, only available for sqlite driver.       |\n| TYPECHO_DB_DATABASE     | `*` required for mysql and pgsql drivers\u003cbr\u003eDatabase name of typecho, only available for mysql and pgsql drivers.|\n| TYPECHO_DB_PREFIX       | default: `typecho_`\u003cbr\u003eThe prefix of all tables.                                                     |\n| TYPECHO_DB_ENGINE       | default: `InnoDB`\u003cbr\u003eMysql database engine, only available for mysql driver.                          |\n| TYPECHO_DB_CHARSET      | default: `utf8`(for pgsql) or `utf8mb4`(for mysql)\u003cbr\u003eDatabase charset, only available for mysql and pgsql drivers.|\n| TYPECHO_DB_NEXT         | default: `none`\u003cbr\u003eThe action to perform when there are already having some application tables in database.\u003cbr\u003e* `none`: Do nothing, just exit.\u003cbr\u003e* `keep`: Keep these tables, and skip the init step.\u003cbr\u003e* `force`: Delete these tables, and init data again.|\n| TYPECHO_SITE_URL        | `*` required\u003cbr\u003eYour website url, for example: `https://your-domain.com`                             |\n| TYPECHO_USER_NAME       | default: `typecho`\u003cbr\u003eThe admin username to create.                                                  |\n| TYPECHO_USER_PASSWORD   | default: a random 8 characters string.\u003cbr\u003eThe admin password to create.                              |\n| TYPECHO_USER_MAIL       | default: `admin@localhost.local`\u003cbr\u003eThe email address of admin to create.                            |\n\n## Port\n\n| Image Tag               | Port | Description                                                                                       |\n|-------------------------|------|----------------------------------------------------------------------------------------------------|\n| `*-fpm`                 | 9000 | FastCGI port for php-fpm.                                                                          |\n| `*-apache`              | 80   | Http port for apache.                                                                              |\n| `*-cli`                 |      | No port exposed.                                                                                   |\n\n## Volume\n\nYou can mount some local directories to these container directories for persistent data.\n\n| Container Directory     | Description                                                                                       |\n|-------------------------|----------------------------------------------------------------------------------------------------|\n| `/app/usr`              | Typecho data directory. If you mount this directory to local, the following directories will be included. |\n| `/app/usr/plugins`      | Typecho plugins directory.                                                                         |\n| `/app/usr/themes`       | Typecho themes directory.                                                                          |\n| `/app/usr/uploads`      | Typecho uploads directory.                                                                         |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypecho%2Fdockerfile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftypecho%2Fdockerfile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypecho%2Fdockerfile/lists"}