https://github.com/ttys3/typecho-docker
docker-typecho-alpine-s6
https://github.com/ttys3/typecho-docker
Last synced: over 1 year ago
JSON representation
docker-typecho-alpine-s6
- Host: GitHub
- URL: https://github.com/ttys3/typecho-docker
- Owner: ttys3
- Created: 2020-02-13T13:15:48.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-05-18T17:02:50.000Z (about 3 years ago)
- Last Synced: 2025-01-17T15:42:35.946Z (over 1 year ago)
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/80x86/typecho
- Size: 69.3 KB
- Stars: 35
- Watchers: 3
- Forks: 17
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# typecho docker image for amd64/arm64 machine
## both MySQL and SQLite are supported
use [s6](https://skarnet.org/software/s6/why.html) as supervision instead of runit
with slightly modified code which is suitable best for containers: https://github.com/ttys3/typecho/commits/docker
update: typecho code has been updated to [v1.2.1-rc.2](https://github.com/typecho/typecho/releases/tag/v1.2.1-rc.2)
latest image: ` docker.io/80x86/typecho:v1.2.1-rc.2-amd64`
typecho is a PHP based lightweight blog system
### Multi-Architecture image supported
| Architecture | DB Support | Image:Tag |
|:-------------|:--------------|:----------------------------------|
| amd64/arm64 | MySQL and SQLite | 80x86/typecho:latest |
### container volume map
you need to map container path `/data` to your host machine for persistent data storage.
## example
AMD64 or arm64:
```shell
docker run -d \
--name=typecho \
--restart always \
--mount type=tmpfs,destination=/tmp \
-v /srv/http/typecho:/data \
-e PHP_TZ=Asia/Shanghai \
-e PHP_MAX_EXECUTION_TIME=600 \
-p 90:80 \
80x86/typecho:latest
```