diff --git a/.gitignore b/.gitignore index 72b1975..8ee7c06 100644 --- a/.gitignore +++ b/.gitignore @@ -29,4 +29,5 @@ .DS_Store .env vendor -node_modules \ No newline at end of file +node_modules +docker-compose.override.yml \ No newline at end of file diff --git a/docker-compose.override-sample.yml b/docker-compose.override-sample.yml new file mode 100644 index 0000000..cbeede6 --- /dev/null +++ b/docker-compose.override-sample.yml @@ -0,0 +1,15 @@ +# +# uncoment volumes below to bind specif plugins and themes from other paths into your project +# copy this file as 'docker-compose.override.yml' for autoloading with docker-compose.yml +# +services: + + reverse-proxy: +# volumes: +# - ../repo/wp-content/themes/my-theme:/var/www/html/wp-content/themes/my-theme +# - ../repo/wp-content/plugins/my-plugin:/var/www/html/wp-content/plugins/my-plugin + + app: +# volumes: +# - ../repo/wp-content/themes/my-theme:/var/www/html/wp-content/themes/my-theme +# - ../repo/wp-content/plugins/my-plugin:/var/www/html/wp-content/plugins/my-plugin diff --git a/docker-compose.yml b/docker-compose.yml index 9a99090..15e208e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,8 +11,6 @@ services: - app volumes: - ./webroot:/var/www/html - - ../repo/wp-content/themes/itforumportal:/var/www/html/wp-content/themes/itforumportal - - ../repo/wp-content/plugins/advanced-custom-fields-pro:/var/www/html/wp-content/plugins/advanced-custom-fields-pro environment: WORDPRESS_SITEURL: ${WPSTACK_PROTOCOL}://${WPSTACK_DOMAIN}/${WPSTACK_URLPATH:-} WORDPRESS_SITE_TYPE: ${WPSTACK_MULTISITE:-regular} @@ -32,8 +30,6 @@ services: dockerfile: ./docker/wordpress/Dockerfile volumes: - ./webroot:/var/www/html - - ../repo/wp-content/themes/itforumportal:/var/www/html/wp-content/themes/itforumportal - - ../repo/wp-content/plugins/advanced-custom-fields-pro:/var/www/html/wp-content/plugins/advanced-custom-fields-pro environment: WORDPRESS_DB_HOST: db WORDPRESS_DB_USER: ${DB_USER}