app folder locally, you might end up with something like: volumes: path/on/host/themes:/var/www/html/themes path/on/host/sites:/var/www/html/sites path/on/host/profiles:/var/www/html/profiles path/on/host/modules:/var/www/html/modules On the Drupal Docker Hub page (under the volumes heading) they talk about adding 4 volume mounts for specific folders, like: volumes: so, if there is nothing in it to begin with, then it wont be filled by your docker container being created. app folder INTO the container, overwriting /app inside the container. Under volumes:, you are mounting your local. RUN apt-get clean & rm -rf /var/Running docker containers with: docker-compose build RUN composer global require drush/drush:8.2 & \ Sed -i -e "s/^ *upload_max_filesize.*/upload_max_filesize = 30M/g" /usr/local/etc/php/php.ini Sed -i -e "s/^ *memory_limit.*/memory_limit = -1/g" /usr/local/etc/php/php.ini & \ RUN cp /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini & \ Ln -s /root/.composer/vendor/bin/drush /usr/local/bin/drush Php -r "unlink('composer-setup.php') " & \ Mv composer.phar /usr/local/bin/composer & \ RUN php -r "copy('', 'composer-setup.php') " & \ MySQL databases not in volume, but served from Mac development environment So, I can't install that specific version? Docker 19.03.13 Since I am trying to mirror the drupal site on the production server environment, I need to install drupal version 7.69, but this version is not listed on Docker Hub as a package. That works, but I thought the point of docker-compose was that it would install everything including drupal 7. I then placed a composer.json in the root to run composer and install drupal 7. (We are getting ready to upgrade to Drupal 8 - not relevant to this question here.) When I run docker-compose the docker container and an app folder is created, but there is nothing inside app/. New to docker and I wanted to install Drupal 7 with docker, to mirror our production server environment.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |