Finalize the docker build

This commit is contained in:
Manuel Thalmann 2019-04-05 10:40:06 +02:00
parent 050f94ae88
commit 32e8034c9f
2 changed files with 13 additions and 0 deletions

11
.docker/.env Normal file
View file

@ -0,0 +1,11 @@
SS_ENVIRONMENT_TYPE="dev"
SS_BASE_URL="http://localhost"
SS_DATABASE_CLASS="MySQLPDODatabase"
SS_DATABASE_SERVER="db"
SS_DATABASE_USERNAME="root"
SS_DATABASE_PASSWORD="root"
SS_DATABASE_NAME="SilverStripe"
SS_DEFAULT_ADMIN_USERNAME="root"
SS_DEFAULT_ADMIN_PASSWORD="root"

View file

@ -37,6 +37,8 @@ COPY --chown=www-data:www-data ./Website/composer.* ./
RUN sudo -u www-data mkdir public RUN sudo -u www-data mkdir public
RUN sudo -u www-data composer install RUN sudo -u www-data composer install
COPY --chown=www-data:www-data .docker/.env .env
COPY .docker/xdebug.ini $PHP_INI_DIR/conf.d/ COPY .docker/xdebug.ini $PHP_INI_DIR/conf.d/
COPY .docker/date.ini $PHP_INI_DIR/conf.d/ COPY .docker/date.ini $PHP_INI_DIR/conf.d/
COPY --chown=www-data:www-data ./Website/ ./ COPY --chown=www-data:www-data ./Website/ ./