cat's dockerized WordPress dev environment
Last active
January 19, 2019 17:20
-
-
Save the-cc-dev/576f4fbe76201a2da2ce1d1d2fc72245 to your computer and use it in GitHub Desktop.
CatPress
This file contains 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.3' | |
services: | |
db: | |
image: mysql:5.7 | |
volumes: | |
- db_data:/var/lib/mysql | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: catpress | |
MYSQL_DATABASE: catpress_db | |
MYSQL_USER: cat | |
MYSQL_PASSWORD: cpdb | |
wordpress: | |
depends_on: | |
- db | |
image: wordpress:5.0 | |
ports: | |
- "8000:80" | |
restart: always | |
environment: | |
WORDPRESS_DB_HOST: db:3306 | |
WORDPRESS_DB_USER: cat | |
WORDPRESS_DB_PASSWORD: cpdb | |
working_dir: /var/www/html | |
volumes: | |
- ./wp-content/plugins/acfpro:/var/www/html/wp-content/plugins/acfpro | |
- ./wp-content/plugins/ccplug:/var/www/html/wp-content/plugins/ccplug | |
- ./wp-content/themes/:/var/www/html/wp-content/themes/ | |
- ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini | |
node: | |
image: node:8 | |
user: node | |
working_dir: /var/www/html | |
environment: | |
- NODE_ENV=production | |
volumes: | |
- ./wp-content:/var/www/html/wp-content | |
- ./wp-content/plugins/ccplug:/var/www/html/wp-content/plugins/ccplug | |
- ./wp-content/themes/:/var/www/html/wp-content/themes/ | |
expose: | |
- '8000' | |
volumes: | |
db_data: {} | |
priviledged: true |
This file contains 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 | |
memory_limit = 64M | |
upload_max_filesize = 64M | |
post_max_size = 64M | |
max_execution_time = 600 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment