Skip to content

Commit 1a17d3e

Browse files
committed
download and install drupal modules
1 parent c9714eb commit 1a17d3e

6 files changed

Lines changed: 783 additions & 61 deletions

File tree

docker-compose.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ services:
99
MYSQL_USER: drupal
1010
MYSQL_PASSWORD: drupal
1111
# command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci # The simple way to override the mariadb config.
12-
# volumes:
13-
# - ./docker/mariadb-init:/docker-entrypoint-initdb.d # Place init .sql file(s) here.
12+
volumes:
13+
- ./docker/mariadb-init:/docker-entrypoint-initdb.d # Place init .sql file(s) here.
1414

1515
php:
1616
# image: wodby/drupal-php:7.0-1.0.0
17-
image: wodby/drupal-php:5.6-1.0.0
18-
# build:
19-
# dockerfile: ./docker/php/Dockerfile
20-
# context: ./
17+
# image: wodby/drupal-php:5.6-1.0.0
18+
build:
19+
dockerfile: ./docker/php/Dockerfile
20+
context: ./
2121
environment:
2222
PHP_SITE_NAME: dev
2323
PHP_HOST_NAME: localhost:8999
24-
PHP_DOCROOT: web # Relative path inside the /var/www/html/ directory.
24+
# PHP_DOCROOT: web # Relative path inside the /var/www/html/ directory.
2525
PHP_SENDMAIL_PATH: /usr/sbin/sendmail -t -i -S mailhog:1025
2626
PHP_XDEBUG_ENABLED: 1
2727
PHP_XDEBUG_AUTOSTART: 1
@@ -36,7 +36,7 @@ services:
3636
environment:
3737
NGINX_SERVER_NAME: localhost
3838
NGINX_UPSTREAM_NAME: php
39-
NGINX_DOCROOT: web # Relative path inside the /var/www/html/ directory.
39+
# NGINX_DOCROOT: web # Relative path inside the /var/www/html/ directory.
4040
DRUPAL_VERSION: 8 # Allowed: 7, 8.
4141
volumes_from:
4242
- php

docker/php/Dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,4 @@ FROM wodby/drupal-php:5.6-1.0.0
22

33
MAINTAINER Igor Semenyuk <igor.semenyuk@rolique.io>
44

5-
RUN curl https://drupalconsole.com/installer -L -o drupal.phar \
6-
&& php -r "readfile('https://drupalconsole.com/installer');" > drupal.phar \
7-
&& mv drupal.phar /usr/local/bin/drupal \
8-
&& chmod +x /usr/local/bin/drupal
5+
COPY ./docker/php/settings.php /var/www/tmp/settings.php

0 commit comments

Comments
 (0)