14 May 2024
docker-compose.yml
-file with something similar to this:
# /wordpress-docker/docker-compose.yml
---
version: '3.3'
services:
db:
container_name: 'local-wordpress-db'
image: 'mysql:5.7'
volumes:
- './data/mysql:/var/lib/mysql'
ports:
- 18766:3306
environment:
MYSQL_ROOT_PASSWORD: somewordpress
MYSQL_DATABASE: wordpress_db
MYSQL_USER: wordpress_user
MYSQL_PASSWORD: wordpress_password
wordpress:
container_name: 'local-wordpress'
depends_on:
- db
image: 'wordpress:latest'
ports:
- '80:80'
environment:
WORDPRESS_DB_HOST: 'db:3306'
WORDPRESS_DB_USER: wordpress_user
WORDPRESS_DB_PASSWORD: wordpress_password
WORDPRESS_DB_NAME: wordpress_db
volumes:
- "./wordpress:/var/www/html"
- "./plugins:/var/www/html/wp-content/plugins"
The docker script installs the latest Wordpress version with all it's dependencies and a MySQL 5.7 database. If you need a specific Wordpress version (e.g. if your client runs an older intallation) simply replace latest with whatever version you need.
docker-compose up
This installs everything, if it isn't already, and starts hosting the Wordpress installation locally.
Creating your own self-hosted YouTube
Published 2024-04-26
Datahoarding
Python
Using Youtube API, yt-dlp and Laravel, you can create your own self-hosted Youtube. Learn to scrape data and download videos.
Read the post →How to backup your data
Published 2024-04-26
Datahoarding
A walkthrough of how to backup your data properly, so you don't end up having to cry, when your luck finally runs out. I share how I do it my self.
Read the post →Privacy policy
Published 2024-07-28
Privacy/data policy for the website PhilipSoerensen.com
Read the post →