Created
April 1, 2023 01:19
-
-
Save kazukomurata/23f8d3270f0fc05f2dad17640e663482 to your computer and use it in GitHub Desktop.
Demo: Drupal and ClamAV
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
{ | |
"name": "drupal/recommended-project", | |
"description": "Project template for Drupal projects with a relocated document root", | |
"type": "project", | |
"license": "GPL-2.0-or-later", | |
"homepage": "https://www.drupal.org/project/drupal", | |
"support": { | |
"docs": "https://www.drupal.org/docs/user_guide/en/index.html", | |
"chat": "https://www.drupal.org/node/314178" | |
}, | |
"repositories": [ | |
{ | |
"type": "composer", | |
"url": "https://packages.drupal.org/8" | |
} | |
], | |
"require": { | |
"composer/installers": "^2.0", | |
"cweagans/composer-patches": "^1.7", | |
"drupal/clamav": "^2.0@RC", | |
"drupal/core-composer-scaffold": "^10.0", | |
"drupal/core-project-message": "^10.0", | |
"drupal/core-recommended": "^10.0", | |
"drush/drush": "^11.5" | |
}, | |
"conflict": { | |
"drupal/drupal": "*" | |
}, | |
"minimum-stability": "stable", | |
"prefer-stable": true, | |
"config": { | |
"allow-plugins": { | |
"composer/installers": true, | |
"drupal/core-composer-scaffold": true, | |
"drupal/core-project-message": true, | |
"phpstan/extension-installer": true, | |
"dealerdirect/phpcodesniffer-composer-installer": true, | |
"cweagans/composer-patches": true | |
}, | |
"sort-packages": true | |
}, | |
"extra": { | |
"drupal-scaffold": { | |
"locations": { | |
"web-root": "web/" | |
} | |
}, | |
"patchLevel": { | |
"drupal/core": "-p2" | |
}, | |
"installer-paths": { | |
"web/core": [ | |
"type:drupal-core" | |
], | |
"web/libraries/{$name}": [ | |
"type:drupal-library" | |
], | |
"web/modules/contrib/{$name}": [ | |
"type:drupal-module" | |
], | |
"web/profiles/contrib/{$name}": [ | |
"type:drupal-profile" | |
], | |
"web/themes/contrib/{$name}": [ | |
"type:drupal-theme" | |
], | |
"drush/Commands/contrib/{$name}": [ | |
"type:drupal-drush" | |
], | |
"web/modules/custom/{$name}": [ | |
"type:drupal-custom-module" | |
], | |
"web/profiles/custom/{$name}": [ | |
"type:drupal-custom-profile" | |
], | |
"web/themes/custom/{$name}": [ | |
"type:drupal-custom-theme" | |
] | |
}, | |
"drupal-core-project-message": { | |
"include-keys": [ | |
"homepage", | |
"support" | |
], | |
"post-create-project-cmd-message": [ | |
"<bg=blue;fg=white> </>", | |
"<bg=blue;fg=white> Congratulations, you’ve installed the Drupal codebase </>", | |
"<bg=blue;fg=white> from the drupal/recommended-project template! </>", | |
"<bg=blue;fg=white> </>", | |
"", | |
"<bg=yellow;fg=black>Next steps</>:", | |
" * Install the site: https://www.drupal.org/docs/installing-drupal", | |
" * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html", | |
" * Get support: https://www.drupal.org/support", | |
" * Get involved with the Drupal community:", | |
" https://www.drupal.org/getting-involved", | |
" * Remove the plugin that prints this message:", | |
" composer remove drupal/core-project-message" | |
] | |
}, | |
"patches": { | |
"drupal/clamav": ["https://www.drupal.org/files/issues/2022-11-30/3324573-5.patch"] | |
} | |
} | |
} |
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.1' | |
services: | |
drupal: | |
image: drupal:10.0.7 | |
ports: | |
- 8000:80 | |
volumes: | |
- ./web/sites:/var/www/html/sites | |
- ./composer.json:/opt/drupal/composer.json | |
- ./composer.lock:/opt/drupal/composer.lock | |
restart: always | |
database: | |
image: mysql:8.0.32 | |
ports: | |
- "3306:3306" | |
environment: | |
MYSQL_ROOT_PASSWORD: mysql | |
MYSQL_DATABASE: db | |
MYSQL_USER: user | |
MYSQL_PASSWORD: password | |
TZ: 'Asia/Tokyo' | |
volumes: | |
- ./.docker/db/data:/var/lib/mysql | |
restart: always | |
clamav: | |
image: clamav/clamav:latest | |
restart: always | |
volumes: | |
- ./.docker/clamav/data:/var/lib/clamav | |
ports: | |
- "3310:3310" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment