Giter VIP home page Giter VIP logo

drupal9's Introduction

Envirionment docker4drupal and drupal-project

  • PHP 8.1-dev-4.37.4
  • nginx 1.21-5.24.1
  • MySQL 5.7
  • mariadb 10.8-3.21.0
  • mailhog:latest
  • traefik:v2.0
  • phpmyadmin:latest
  • Drupal 9-4.44.7

You can change the specificities of the environment by editing the file .env

Documentation https://github.com/Wodby/docker4drupal How to use

Installation

Clone this project

git clone https://github.com/Yorik56/drupal project_name

cd into the project_name folder

cd project_name

Run the following command to install the Docker images and run the containers

docker-compose up

Launch the PHP container

docker exec -it drupal_project_php /bin/bash

Run the following command to install Drupal 9 (at the root of the projet inside the container "/var/www/html")

composer install

Create the "config/sync" folder and set the right permissions

mkdir /var/www/html/config && mkdir /var/www/html/config/sync && sudo chmod 777 /var/www/html/config && sudo chmod 777 /var/www/html/config/sync

Launch the Drupal website, you will be redirected to the installation page of the website

http://drupal.docker.localhost:8000/

# .env
DB_NAME=drupal
DB_USER=drupal
DB_PASSWORD=drupal
DB_HOST=mariadb
DB_PORT=3306

Launch PHPMyAdmin

http://pma.drupal.docker.localhost:8000/

Extensions & Themes installation

Launch the PHP container

docker exec -it drupal_project_php /bin/bash

Installation Drush (at the root of the projet inside the container "/var/www/html")

 docker exec -it drupal_project_php composer require drush/drush:^12 -W

Installation Admin toolbar drupal 8||9||10 (at the root of the projet inside the container "/var/www/html")

docker exec -it drupal_project_php composer require 'drupal/admin_toolbar'

Installation of the theme Gin (at the root of the projet inside the container "/var/www/html")

docker exec -it drupal_project_php composer require drupal/gin_toolbar drupal/gin

Enable theme gin (at the root of the projet inside the container "/var/www/html")

docker exec -it drupal_project_php vendor/bin/drush theme:enable gin

Set gin as default theme (at the root of the projet inside the container "/var/www/html")

docker exec -it drupal_project_php vendor/bin/drush cset system.theme default gin
Do you want to update default key in system.theme config? (yes/no) [yes]: (ENTER)

Set gin as admin theme (at the root of the projet inside the container "/var/www/html")

docker exec -it drupal_project_php vendor/bin/drush cset system.theme admin gin
Do you want to update default key in system.theme config? (yes/no) [yes]: (ENTER)

Enable modules admin_toolbar, gin_toolbar (at the root of the projet inside the container "/var/www/html")

docker exec -it drupal_project_php vendor/bin/drush en admin_toolbar admin_toolbar_tools gin_toolbar

drupal9's People

Contributors

yorik56 avatar

Watchers

 avatar

Forkers

gwladysmo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.