initial commit
This commit is contained in:
commit
12ab7b062d
4 changed files with 39 additions and 0 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
db
|
||||||
|
drupal
|
||||||
4
base/Dockerfile
Normal file
4
base/Dockerfile
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
FROM drupal:9.1-php8.0-apache-buster
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install iputils-ping default-mysql-client
|
||||||
|
RUN mv /opt/drupal /opt/drupal_base
|
||||||
10
base/install-drupal.sh
Executable file
10
base/install-drupal.sh
Executable file
|
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/sh
|
||||||
|
cd /opt/drupal
|
||||||
|
set -eux
|
||||||
|
export COMPOSER_HOME="$(mktemp -d)"
|
||||||
|
DRUPAL_VERSION="9.1.5"
|
||||||
|
composer create-project --no-interaction "drupal/recommended-project:$DRUPAL_VERSION" ./
|
||||||
|
chown -R www-data:www-data web/sites web/modules web/themes
|
||||||
|
rmdir /var/www/html
|
||||||
|
ln -sf /opt/drupal/web /var/www/htm
|
||||||
|
rm -rf "$COMPOSER_HOME"
|
||||||
23
docker-compose.yml
Normal file
23
docker-compose.yml
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
version: '3.1'
|
||||||
|
|
||||||
|
services:
|
||||||
|
|
||||||
|
drupal:
|
||||||
|
build: ./base
|
||||||
|
ports:
|
||||||
|
- 18080:80
|
||||||
|
volumes:
|
||||||
|
- "./drupal:/opt/drupal"
|
||||||
|
restart: always
|
||||||
|
|
||||||
|
db:
|
||||||
|
image: mariadb
|
||||||
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- "./db:/var/lib/mysql"
|
||||||
|
environment:
|
||||||
|
- MYSQL_ROOT_PASSWORD=utaer3sheiCeegae
|
||||||
|
- MYSQL_DATABASE=drupal8
|
||||||
|
- MYSQL_USER=drupal8
|
||||||
|
- MYSQL_PASSWORD=drupal8
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue