Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jaredrethman/wp-multisite-docker
WordPress Multisite Docker LEMP / PHPMyAdmin / SSL
https://github.com/jaredrethman/wp-multisite-docker
bash docker-compose lemp lemp-stack makefile mariadb ssl wordpress
Last synced: about 1 month ago
JSON representation
WordPress Multisite Docker LEMP / PHPMyAdmin / SSL
- Host: GitHub
- URL: https://github.com/jaredrethman/wp-multisite-docker
- Owner: jaredrethman
- Created: 2024-02-02T22:21:06.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-02-08T14:29:40.000Z (12 months ago)
- Last Synced: 2024-10-30T12:13:49.530Z (3 months ago)
- Topics: bash, docker-compose, lemp, lemp-stack, makefile, mariadb, ssl, wordpress
- Language: Shell
- Homepage:
- Size: 34.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WordPress Local Docker:
- LEMP: Linux, E/Nginx, MariaDB, PHP
- Version controlled `wp-content` directory## Dependencies:
- Docker & Docker Compose
- (Optional) [mkcert](https://github.com/FiloSottile/mkcert) for cert management, alternatively, macOS is required## Usage:
1. [Fork](https://github.com/jaredrethman/wp-multisite-docker/fork) or [Use this template](https://github.com/new?template_name=wp-multisite-docker&template_owner=jaredrethman)
2. Environment variables: Run `cp .env.example .env`, open `.env` and update `DOMAIN_NAME` and `WP_URL` with your desired domain
3. Build Environment: Run `make start`, this will:
* Download and sync WordPress file system
* Generate `wp-config.php` using variables from `.env` and adding extra config from [`./wp-config.txt`](https://github.com/jaredrethman/wp-multisite-docker/blob/main/wp-config.txt)
* Generate certs, see section on certs
* Build Docker containers specified in `docker-compose.yml`
* Install WordPress db tables with details specified in `.env` i.e. `WP_ADMIN_USER` & `WP_ADMIN_PASSWORD`### SSL Certs:
Currently there are two options when adding ssl:
1. (Recommended) Use [mkcert](https://github.com/FiloSottile/mkcert). Store using the following pattern `./config/nginx/certs/${DOMAIN_NAME}-key.pem` & `./config/nginx/certs/${DOMAIN_NAME}.pem`
2. OpenSSL cert generation. macOS only!## Inspiration:
This project was heavily inspired by these two projects
- https://github.com/aschmelyun/docker-compose-wordpress/
- https://github.com/aurkenb/docker-wordpress-lemp