Skip to content

A LNMP environment with docker-compose for typecho

License

Notifications You must be signed in to change notification settings

hanekoo/typecho-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

typecho-docker

Requirements

Install Docker and Docker Compose

Usage

1.Clone typecho-docker

git clone https://github.com/hanekoo/typecho-docker.git

2.Clone typecho program to ./typecho/

git clone https://github.com/typecho/typecho.git ./typecho/

3.Open the .env file and modify it as needed

vim .env

4.Run it

docker-compose up -d

Other

data

mariadb data path :data/matiadb/

typcho

typecho program path:typecho/

install typecho

database address: just input mariadb service name:mariadb,or get the mariadb service container IP:

docker ps
#CONTAINER ID        IMAGE          ...  NAMES
#24e68b1da482        mariadb:latest ...  typecho-docker_mariadb_1
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' typecho-docker_mariadb_1
#172.20.0.2

For more installation steps, please refer to:Typecho document

About

A LNMP environment with docker-compose for typecho

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published