From 32e8034c9fec8cd5de85fc43daad42cf8f7726c8 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Fri, 5 Apr 2019 10:40:06 +0200 Subject: [PATCH] Finalize the docker build --- .docker/.env | 11 +++++++++++ Dockerfile | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 .docker/.env diff --git a/.docker/.env b/.docker/.env new file mode 100644 index 0000000..7355673 --- /dev/null +++ b/.docker/.env @@ -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" \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 50973e4..f510584 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,6 +37,8 @@ COPY --chown=www-data:www-data ./Website/composer.* ./ RUN sudo -u www-data mkdir public 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/date.ini $PHP_INI_DIR/conf.d/ COPY --chown=www-data:www-data ./Website/ ./