https://github.com/vizee/typecho-docker
typecho docker files
https://github.com/vizee/typecho-docker
docker nginx pgsql typecho
Last synced: 3 months ago
JSON representation
typecho docker files
- Host: GitHub
- URL: https://github.com/vizee/typecho-docker
- Owner: vizee
- License: mit
- Archived: true
- Created: 2016-02-21T06:04:00.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-03-30T03:46:20.000Z (over 7 years ago)
- Last Synced: 2025-01-21T08:33:33.841Z (11 months ago)
- Topics: docker, nginx, pgsql, typecho
- Language: Shell
- Size: 3.91 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# typecho-docker
typecho + pgsql 镜像
## 环境
* docker
* docker-compose
**注意**: docker-compose 版本应与 docker 对应, 例如:docker-compose 1.3.x 对应 docker 1.6 以及以后版本
## 构建
```
./build.sh
```
## 配置
### 数据库
镜像中默认配置博客使用 PGSQL, 相关环境变量在 `docker-compose.yml` 中设置
[postgres配置](https://hub.docker.com/_/postgres/)
### typecho
默认情况下
* 博客程序保存在当前目录下 `app` 文件夹中
* 数据库文件保存在 `dbdata` 中
* 端口映射到主机 80 端口, 在 `docker-compose.yml` 中配置
* 镜像中 nginx 配置为 `nginx/typecho`
* 数据库默认地址
**注意**: 在构建完成并且容器运行后, 需要运行向导后可能需要手动创建 `config.inc.php`
[端口配置](https://docs.docker.com/compose/compose-file/#ports)
#### url重写
已在nginx中配置, 直接在后台设置`设置/永久连接/是否使用地址重写功能`强制启用