Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

MosHelper/docker-compose-wordpress-example

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Compose Wordpress

Support Docker Swarm

1. Clone

git clone https://github.com/MosHelper/docker-compose-wordpress-example.git docker-wordpress

2. File

docker-wordpress                <- Project Folder
│--- custom.php.ini             <- php config
│--- docker-compose.yml         <- Do not use Docker Swarm
│--- docker-stack-deploy.yml    <- use Docker Swarm
│--- README.MD
└─── www                        <- Wordpress Folder
    |--- README.MD

3. How to use

3.1 Config

  • In custom.php.ini is php config for example upload_max_filesize, memory_limit, ...
  • In docker-stack-deploy.yml is config docker container for example port, ...

3.2 Docker Compose

Start New Project

  1. Run Command
docker-compose up -d
  1. Go to http://localhost:8080 and install Wordpress

Started with a project already

  1. Copy Your Wordpress to www
  2. Edit Database Connect in wp-config.php
  3. Run Command
docker-compose up -d
  1. Go to http://localhost:8080

3.3 Docker Swarm

If you do use Docker Swarm. Config Stack

deploy:
      replicas: 1 <- Change 1 to 2, 3, 4, ... as you want.

in docker-stack-deploy.yml

Start New Project

  1. Run Command
docker stack deploy -c docker-stack-deploy.yml wordpress1
  • wordpress1 is stack name
  1. Go to http://localhost:8080 and install Wordpress

Started with a project already

  1. Copy Your Wordpress to www
  2. Edit Database Connect in wp-config.php
  3. Run Command
docker stack deploy -c docker-stack-deploy.yml wordpress1
  • wordpress1 is stack name
  1. Go to http://localhost:8080

About

Docker Compose Wordpress MySQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.