working Wordpress install

This commit is contained in:
2026-01-24 22:34:28 -07:00
parent 0a7be6b597
commit cf830bc4f1
2 changed files with 55 additions and 0 deletions
+42
View File
@@ -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