Skip to content

furiatona/wordpress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Advanced Wordpress Deployment

Scalable Wordpress deployment using Swarm and Traefik

Requirements

Run the app

# Init Docker Swarm
docker swarm init

# Create and start containers
docker-compose --compatibility up -d

# Wait until containers up, or you will get error 502
watch 'docker ps --format="table {{.Names}}\t{{.Status}}"'

# Access Wordpress endpoint
http://localhost

# If this the first time you run the app, you need to finish Wordpress installation
# https://wordpress.org/support/article/how-to-install-wordpress/#finishing-installation

Scale the app

# Edit replicas and port ranges in docker-compose.yaml file

   deploy:
      replicas: 5 # e.g if you change the replicas from 3 to 5 
    ports:
      - "7000-7004" # you need to change the ports range from 7000-7002 to 7000-7004 as well

# Create and start containers
docker-compose --compatibility up -d

# Access Wordpress endpoint in your browser
http://localhost

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published