diff --git a/.env.example b/.env.example index 7e9e7ae6..4c6b963f 100644 --- a/.env.example +++ b/.env.example @@ -7,13 +7,13 @@ APP_KEY=someRandomStringWith32Characters ## Configuration of the database connection ## Attention: Those settings are configured during the web setup, please do not modify them now. # Set the database driver (mysql, pgsql, sqlsrv, sqlite) -DB_CONNECTION=sqlite -# Set the database name (MySQL, Postgres,...) or path (SQLite) here -DB_DATABASE=/app/database/database.sqlite +DB_CONNECTION=mysql # Set the host of your database here -DB_HOST=127.0.0.1 +DB_HOST=db # Set the port of your database here DB_PORT=3306 +# Set the database name here +DB_DATABASE=linkace # Set both username and password of the user accessing the database DB_USERNAME=linkace # Wrap your password into quotes (") if it contains special characters diff --git a/.env.sqlite.production b/.env.sqlite.production new file mode 100644 index 00000000..7e9e7ae6 --- /dev/null +++ b/.env.sqlite.production @@ -0,0 +1,20 @@ +## LINKACE CONFIGURATION + +## Basic app configuration +# The app key is generated later, please leave it like that +APP_KEY=someRandomStringWith32Characters + +## Configuration of the database connection +## Attention: Those settings are configured during the web setup, please do not modify them now. +# Set the database driver (mysql, pgsql, sqlsrv, sqlite) +DB_CONNECTION=sqlite +# Set the database name (MySQL, Postgres,...) or path (SQLite) here +DB_DATABASE=/app/database/database.sqlite +# Set the host of your database here +DB_HOST=127.0.0.1 +# Set the port of your database here +DB_PORT=3306 +# Set both username and password of the user accessing the database +DB_USERNAME=linkace +# Wrap your password into quotes (") if it contains special characters +DB_PASSWORD=ChangeThisToASecurePassword! diff --git a/.gitignore b/.gitignore index 49c3c55e..7833c5c6 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,7 @@ yarn-error.log .env.* !.env.docker !.env.docker.production +!.env.sqlite.production !.env.example .phpunit.result.cache _ide_helper.php diff --git a/resources/docker/dockerfiles/release-multiplatform.Dockerfile b/resources/docker/dockerfiles/release-multiplatform.Dockerfile index 9b81e415..5427fe44 100644 --- a/resources/docker/dockerfiles/release-multiplatform.Dockerfile +++ b/resources/docker/dockerfiles/release-multiplatform.Dockerfile @@ -84,7 +84,7 @@ RUN touch ./database/database.sqlite \ && chmod +w ./database/database.sqlite \ && chmod +r ./database -COPY --chown=www-data:www-data ./.env.example /app/.env +COPY --chown=www-data:www-data ./.env.sqlite.production /app/.env # Configure Supervisor for PHP + Caddy ENV PORT=80