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/ ./