• Stars
    star
    275
  • Rank 149,796 (Top 3 %)
  • Language
    Shell
  • License
    The Unlicense
  • Created over 11 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Dockerfile and etc for a Wordpress docker image

(note: docker-wordpress no longer contains an sshd. It was probably a mistake to put one in in the first place, and you can now spawn arbitrary processes with use of the docker exec command. So do that, instead, like this:

docker exec -i -t docker-wordpress bash

easy!)

(note: Eugene Ware has a Docker wordpress container build on nginx with some other goodies; you can check out his work here.)

(N.B. the way that Docker handles permissions may vary depending on your current Docker version. If you're getting errors like

dial unix /var/run/docker.sock: permission denied

when you run the below commands, simply use sudo. This is a known issue.)

This repo contains a recipe for making a Docker container for Wordpress, using Linux, Apache and MySQL. To build, make sure you have Docker installed, clone this repo somewhere, and then run:

docker build -rm -t <yourname>/wordpress .

Or, alternately, build DIRECTLY from the github repo like some sort of AMAZING FUTURO JULES-VERNESQUE SEA EXPLORER:

docker build -rm -t <yourname>/wordpress git://github.com/jbfink/docker-wordpress.git

Then run it, specifying your desired ports! Woo!

docker run --name wordpress -d -p <http_port>:80 <yourname>/wordpress 

Check docker logs after running to see MySQL root password and Wordpress MySQL password, as so

echo $(docker logs wordpress | grep password)

(note: you won't need the mysql root or the wordpress db password normally)

Your wordpress container should now be live, open a web browser and go to http://localhost:<http_port>, then fill out the form. No need to mess with wp-config.php, it's been auto-generated with proper values.

You can shutdown your wordpress container like this:

docker stop wordpress

And start it back up like this:

docker start wordpress

Enjoy your wordpress install courtesy of Docker!

More Repositories

1

docker-lampstack

Dockerfile and associated other stuff for building a LAMP stack
Shell
77
star
2

docker-atom

Artefactual's AtoM, dockerized!
Shell
7
star
3

r-extract

reddit scraper in python
Python
4
star
4

20230525-infinite-game

slides for a talk about LLMs/ChatGPT/Procedural Generation, given May 25th, 2023.
TeX
3
star
5

20230308-latex

TeX
3
star
6

Bus-SMS

Open Hamilton's Bus SMS
Python
3
star
7

arduino-sketchbook

The contents of my arduino sketchbook folder. Don't expect anything earthshattering.
Java
2
star
8

latexegs

Presentation on LaTeX to the McMaster Engineering Grad Society on 2022-07-19.
TeX
2
star
9

oblis-strategies

Cards In Favour Of Librarianship
Shell
2
star
10

zoolander

eliminate Bahasa @replies to my twitter stream
Ruby
2
star
11

discard

Discard! A card game about getting rid of books.
2
star
12

codeyear

notes and detritus from my codeyear
JavaScript
2
star
13

acrl-git

ACRL git article
2
star
14

crm

CRM for Libraries
CSS
2
star
15

wio-terminal-rps

Rock, Paper, Scissors on the Wio Terminal
Python
2
star
16

try_git

1
star
17

vcforlibraries

Version Control for Libraries Presentation
Objective-C
1
star
18

gobyexample

go by example exercises
Go
1
star
19

beamer-mcmaster

A LaTeX Beamer theme in McMaster University colours
TeX
1
star
20

c4ln2012

Code4Lib 2012 presentation notes
Objective-C
1
star
21

LibraryCRM

notes and detritus for LibraryCRM
Objective-C
1
star
22

fillmore

A email-to-Google Calendar gateway
Ruby
1
star
23

hamilton-geojson

Hamilton Open Data KML to geoJSON
1
star
24

r-sunshine

my experimentation with R and the 2017 Ontario Sunshine List
1
star
25

access-thecloud

Access Article -- "The Cloud"
1
star
26

arcadegamemanuals

metadata for Internet Archive arcade game manuals
1
star
27

library-howto

1
star
28

c4ln-2018-ipfs-dat

Code4Lib North Presentation: IPFS and dat
JavaScript
1
star
29

rps.py

Rock Paper Scissors, in Python
1
star
30

docker-omeka

A Docker recipe for Omeka.
PHP
1
star
31

crowd-mogrify

Cloud-Crowd's graphics_magick.rb rewritten to work with ImageMagick's mogrify
Ruby
1
star
32

jbfink.github.com.source

source for jbfink.github.com
JavaScript
1
star
33

go-rps

rock paper scissors in Go. Eventually.
Go
1
star
34

scds-site

scds website, octopress version.
JavaScript
1
star
35

udacity

notes/detritus/code from udacity courses
1
star
36

GLTHATcamp2012

Great Lakes THATcamp 2012 workshop notes
1
star
37

koans

My runthrough of the EdgeCase Ruby Koans
Ruby
1
star
38

xisbn-demo

Sinatra xISBN OLA demo
Ruby
1
star
39

bastards-book

exercises related to the Bastards Books of Ruby
Ruby
1
star
40

adrbox

Module/storage space for my reusable code
Ruby
1
star
41

larry

Turning IMAP into LDAP.
1
star
42

rps

My Rock, Paper, Scissors ruby script.
Ruby
1
star
43

df-review

dwarf fortress review for andrewcolgoni.ca
1
star
44

rpggame

An attempt to learn about classes and inheritance in Ruby.
Ruby
1
star
45

sendload

Sending /proc/loadavg over serial to Arduino
Ruby
1
star
46

sample_app2

rails 3 tutorial sample_app
Ruby
1
star
47

autogen-test

testing autogen with local LLM setup
Python
1
star
48

c4l-docker-article

code4lib journal article on Docker
Shell
1
star
49

ph2-depot

Programming Historian 2 notes and detritus
1
star
50

c4l-docker-workshop

code4lib docker workshop notes slides whatever
1
star
51

MVMR

this is my fork of perrotn's mvmr
Shell
1
star
52

barisan

Research project submissions in Rails
Ruby
1
star
53

wolfman

Runs through your mp3 collection, determines length of time for each mp3, and then fills X amount of time with random mp3s.
Ruby
1
star
54

diceroller

A dice roller.
Ruby
1
star
55

sample_app

Ruby on Rails Tutorial sample application
Ruby
1
star
56

ruby-penneyante

the nontransitive coin flipping game Penney-Ante, in Ruby.
Ruby
1
star
57

presos

My presentations.
1
star
58

ltc2012

my presentation for LibTechConf 2012
Objective-C
1
star
59

compose-lampstack

Bare bones Docker Compose LAMP stack, with php:apache and MariaDB.
1
star
60

omg-wtf-twitter

omg wtf twitter, a presentation to Canadian Digital Scholarship Librarians group on 20221125
TeX
1
star
61

dockerpreso

Presentation on Docker
JavaScript
1
star
62

codercamp2012

brief presentation on embedded devices for CoderCamp 2012 in Hamilton.
JavaScript
1
star
63

nodebeginner

Noodling with Node using nodebeginner.org
JavaScript
1
star
64

euler-ruby

My project euler runthrough in Ruby.
Ruby
1
star
65

goatcast

Project to turn random tweets from twitter csv dump into a podcast.
Ruby
1
star