Images with vanilla Drupal – wodby/drupal:. # - /path/to/postgres/data/on/host:/var/lib/postgresql/data # I want to manage volumes manually. postgres-init:/docker-entrypoint-initdb.d # Place init file(s) here. # postgres: # image: wodby/postgres:10.1-1.2.0 # image: wodby/postgres:9.6-1.2.0 # environment: # POSTGRES_PASSWORD: password # POSTGRES_DB: drupal # POSTGRES_USER: drupal # volumes: #. # - /path/to/mariadb/data/on/host:/var/lib/mysql # I want to manage volumes manually. mariadb-init:/docker-entrypoint-initdb.d # Place init. MYSQL_ROOT_PASSWORD: password MYSQL_DATABASE: drupal MYSQL_USER: drupal MYSQL_PASSWORD: drupal # volumes: #. Make sure you remove all sensible information you might have there. # Content of your docker-compose.yml file. ID: BXXU:7OQY:GRCJ:GIPM:BZCH:NCYN:UI7W:3LJT:TYHJ:5YB5:HN4R:2HYB Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslogĬontainerd version: 06b9cb35161009dcb7123345749fef02f7cea8e0 Network: bridge host ipvlan macvlan null overlay This needs some special attention too.# Run "docker info" on the host machine and paste output here Also, because I’m using a Mac, I need to use something called docker-sync. I’ll get to a more specific setup with more than one project in a later post. Since all the folders are on my local machine, I don’t need the VM anymore and I can connect to my git repositories at work while using the VPN connection. Now you go to (change URL to the one used in. Once you have completed the configuration, you can start your container: You can make choises about the versions for all the components in the other tags. env file and make the necessary changes, starting with the project name and URL. Then copy the Docker4Drupal stuff in the project folder: I found this very instructive video:, I’ll describe it below.Ĭomposer create-project drupal-composer/drupal-project:8.x-dev project_name -no-interaction (this creates a project in the folder project_name - clone drupal-project - and runs composer install make sure to rename the project name)īecause you don’t need the git repository stuff: I’ll start with basic installation and will get to a more sophisticated setup in a later post. There is a plethora of other tools you can choose from, like Redis, Varnish or Memcached for caching, Solr, Elasticsearch and Kibana for search, and a lot more. You can choose Nginx or Apache, Mariadb or Postgres, Drupal 7 or 8, PHP 7.2, 7.3 or 7.4. It took some figuring out, especially getting multiple projects to work next to one another, but I got it working.ĭocker4Drupal is a Docker-based Drupal stack: a set of docker images optimized for Drupal. This makes pushing and pulling to/from the git repositories cumbersome. I can only connect to the git repositories at work using a VPN connection, but when I start the VPN connection I cannot connect to my VM anymore. Now that I’m working from home I faced a problem. When I was working at the office this is just fine, apart from the fact that it is somewhat slow: I start the VM, wait for it to finish, then make an SSHFS connection to the VM, start PhpStorm, and wait again for PhpStorm to stop indexing (which is REALLY slow). I have been doing my Drupal development in a virtual machine using Virtualbox for some time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |