https://github.com/takeyuweb/mtdk
MT7開発環境構築をdockerで手軽にやりたい
https://github.com/takeyuweb/mtdk
Last synced: 4 months ago
JSON representation
MT7開発環境構築をdockerで手軽にやりたい
- Host: GitHub
- URL: https://github.com/takeyuweb/mtdk
- Owner: takeyuweb
- Created: 2018-05-16T08:30:42.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-26T09:32:47.000Z (over 7 years ago)
- Last Synced: 2025-08-24T22:14:32.048Z (10 months ago)
- Language: Dockerfile
- Homepage:
- Size: 3.91 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MTDK: Movable Type Developers Kit
MT開発環境構築をdockerで手軽にやりたい
## Setup a build environment
### Requirements
- Movable Type 7
- Docker 17 ce or later
- Docker Compose 1.16 or later
### Setup
```
git clone https://github.com/takeyuweb/MTDK.git myproject
cd myproject
docker-compose build
```
## Run Servers
```
docker-compose up
mv /path/to/MT-7.0/* data/mt
cp mt-config.cgi.sample data/mt/mt-config.cgi
```
## URL
### Movable Type
http://localhost:8080/mt/
### MailCatcher
http://localhost:8081
### phpMyAdmin
http://localhost:8082
## Path
| Name | Path |
| ---- | ---- |
| Document Root | /data/files |
| Movable Type | /data/mt |
## Tips
### run-periodic-tasks
```
docker-compose run -w /data/mt -u www-data httpd perl tools/run-periodic-tasks
```
### 起動中のコンテナのシェルに入る
```
CONTAINER_ID=$(docker ps | grep `docker-compose ps | awk '{print $1}' | grep _httpd_ | head -n 1` | awk '{print $1}')
docker exec -i -t -u www-data $CONTAINER_ID /bin/bash
```