Skip to content

Instantly share code, notes, and snippets.

@chillbits-legacy
Last active June 14, 2021 07:44
Show Gist options
  • Save chillbits-legacy/f304223f01fcb2e7dca29e8877e93e9f to your computer and use it in GitHub Desktop.
Save chillbits-legacy/f304223f01fcb2e7dca29e8877e93e9f to your computer and use it in GitHub Desktop.
version: "3"
services:
mysql:
image: mysql:5.7
volumes:
- "./data/db:/var/lib/mysql:delegated"
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: password
ports:
- "3306:3306"
phpfpm:
image: 10up/wp-php-fpm-dev:7.4
depends_on:
- mysql
volumes:
- "./wordpress:/var/www/html:cached"
- "./config/php-fpm/php.ini:/usr/local/etc/php/php.ini:cached"
- "./config/php-fpm/docker-php-ext-xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini:cached"
- "./config/php-fpm/wp-cli.local.yml:/var/www/html/wp-cli.local.yml:cached"
- "~/.ssh:/root/.ssh:cached"
nginx:
depends_on:
- phpfpm
ports:
- "80:80"
- "443:443"
image: nginx:latest
volumes:
- "./wordpress:/var/www/html:cached"
- "./config/nginx/default.conf:/etc/nginx/conf.d/default.conf:cached"
- "./config/certs:/etc/nginx/certs:cached"
- "./logs/nginx:/var/log/nginx:cached"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment