Skip to content

Instantly share code, notes, and snippets.

@AppSecExplained
Created June 12, 2023 08:04
Show Gist options
  • Save AppSecExplained/8bbf5366c6279ffc44beec16e6c39855 to your computer and use it in GitHub Desktop.
Save AppSecExplained/8bbf5366c6279ffc44beec16e6c39855 to your computer and use it in GitHub Desktop.
quickly spin up a wordpress instance
version: "3"
services:
database:
image: mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: wppassword
MYSQL_DATABASE: wpdb
MYSQL_USER: wpuser
MYSQL_PASSWORD: wppassword
volumes:
- mysql:/var/lib/mysql
wordpress:
depends_on:
- database
image: wordpress:latest
restart: always
ports:
- "80:80"
environment:
WORDPRESS_DB_HOST: database:3306
WORDPRESS_DB_USER: wpuser
WORDPRESS_DB_PASSWORD: wppassword
WORDPRESS_DB_NAME: wpdb
volumes:
["./:/var/www/html"]
volumes:
mysql: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment