Created
March 13, 2020 21:51
-
-
Save StoyPenny/ee7b3dd3f63f2d1fa6478543ee172bbc to your computer and use it in GitHub Desktop.
Docker Setup for WP Containers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
services: | |
wp_db: | |
image: mysql:5.7 | |
volumes: | |
- ./db_data/:/var/lib/mysql | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: hallpass | |
MYSQL_DATABASE: hallpass | |
MYSQL_USER: hallpass | |
MYSQL_PASSWORD: hallpass | |
wp_bang: | |
depends_on: | |
- wp_db | |
image: wordpress:latest | |
ports: | |
- "8200:80" | |
- "445:443" | |
restart: always | |
volumes: | |
- ~/path/to/website/files/:/var/www/html/ | |
environment: | |
WORDPRESS_DB_HOST: localhost | |
WORDPRESS_DB_USER: hallpass | |
WORDPRESS_DB_PASSWORD: hallpass | |
phpmyadmin: | |
depends_on: | |
- wp_db | |
image: phpmyadmin/phpmyadmin | |
restart: always | |
ports: | |
- 8090:80 | |
environment: | |
PMA_HOST: wp_db | |
MYSQL_ROOT_PASSWORD: hallpass | |
volumes: | |
- ~/path/to/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini | |
volumes: | |
bang_db_data: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
file_uploads = On | |
upload_max_filesize = 1024M | |
post_max_size = 1024M |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment