working Wordpress install
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# Wordpress
|
||||
This instance has a long history, as I've migrated my blog several times. As a
|
||||
result of previously not keeping records, I've lost some of the history of how
|
||||
it got here.
|
||||
|
||||
Ultimately, I had to modify the docker-compose I'd made for Pressbooks to make
|
||||
this work (originally [from here](https://github.com/TangentFoxy/pressbooks-compatible-wordpress-dockerfile/blob/main/docker-compose.yml)).
|
||||
|
||||
I briefly tried [the version from awesome-docker-compose](https://github.com/docker/awesome-compose/blob/master/wordpress-mysql/compose.yaml),
|
||||
but it doesn't support the ability to make basic edits to a Wordpress install,
|
||||
yikes!
|
||||
|
||||
(It also used a bad method for setting the database root password. D:)
|
||||
@@ -0,0 +1,42 @@
|
||||
# TODO set volume directories
|
||||
# TODO change ALL_CAPS environment variables in all locations
|
||||
|
||||
volumes:
|
||||
html:
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: none
|
||||
o: bind
|
||||
device: /mnt/apple/blog/html
|
||||
mysql:
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: none
|
||||
o: bind
|
||||
device: /mnt/apple/blog/mysql
|
||||
|
||||
services:
|
||||
wordpress:
|
||||
image: wordpress:latest
|
||||
restart: always
|
||||
# ports:
|
||||
# - 8080:80
|
||||
environment:
|
||||
WORDPRESS_DB_HOST: db
|
||||
WORDPRESS_DB_USER: wordpress
|
||||
WORDPRESS_DB_PASSWORD: YOUR_PASSWORD
|
||||
WORDPRESS_DB_NAME: wordpress
|
||||
volumes:
|
||||
- html:/var/www/html
|
||||
|
||||
db:
|
||||
container_name: db
|
||||
image: mysql:8.0
|
||||
restart: always
|
||||
environment:
|
||||
MYSQL_DATABASE: wordpress
|
||||
MYSQL_USER: wordpress
|
||||
MYSQL_PASSWORD: YOUR_PASSWORD
|
||||
MYSQL_RANDOM_ROOT_PASSWORD: '1'
|
||||
volumes:
|
||||
- mysql:/var/lib/mysql
|
||||
Reference in New Issue
Block a user