Skip to content

wordpress using mariadb and nginx -- a single nomad deploy with 2 containers ( see tag sqlite for prior single container using sqlite :)

Notifications You must be signed in to change notification settings

internetarchive/nomad-wordpress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WordPress with Nomad

This sets up a blank WP blog, leveraging HinD (Hashistack-IN-Docker)

It deploys two containers in a single nomad job, with two containers:

  • one with apache2 and wordpress
  • one with mysql database

Startup help

To login from the website and do final setup, the easiest way is to visit the site and step through the prompts.

Unit testing of the two containers used

Starting from scratch w/ a nomad deploy and two containers doing a "dance" to get each bootstrapped can sometimes be a pain.

If they don't eventually start up, you may want to fire up 2 containers manually to get a proper setup.

# figure out your password ;-)

podman run --rm -it --name db --net=bridge -p 3306:3306 \
  -e MYSQL_DATABASE=demo-db \
  -e MYSQL_USER=demo-user \
  -e MYSQL_RANDOM_ROOT_PASSWORD=1 \
  -e MYSQL_PASSWORD=666ggg666 \
  mysql:8.0

podman run --rm -it --name wp --net=bridge -p 8080:80 \
  -e WORDPRESS_DB_NAME=demo-db \
  -e WORDPRESS_DB_USER=demo-user \
  -e WORDPRESS_DB_PASSWORD=666ggg666 \
  -e WORDPRESS_DB_HOST=165.22.247.210:3306 \
  wordpress

# then browse to http://localhost:8080

About

wordpress using mariadb and nginx -- a single nomad deploy with 2 containers ( see tag sqlite for prior single container using sqlite :)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages