Skip to content

Commit

Permalink
docker updates
Browse files Browse the repository at this point in the history
  • Loading branch information
th0rn0 committed Mar 24, 2024
1 parent 3de95a8 commit 046d03c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
6 changes: 6 additions & 0 deletions resources/docker/php/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ WORKDIR /var/www/html

COPY src/ /var/www/html

COPY resources/docker/php/entrypoint.sh /entrypoint.sh

RUN chmod +x /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]

FROM php-base as php-composer

RUN apt install -y git curl wget
Expand Down
10 changes: 10 additions & 0 deletions resources/docker/php/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env sh
...
php artisan optimize
php artisan config:cache
php artisan view:cache
php artisan view:clear

docker-php-entrypoint

php-fpm
4 changes: 2 additions & 2 deletions src/config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
'driver' => 'mysql',
'host' => env('DB_HOST', 'db'),
'port' => env('DB_PORT', '3306'),
'database' => env('DB_DATABASE', 'eventula_manager_database'),
'username' => env('DB_USERNAME', 'eventula_manager'),
'database' => env('DB_DATABASE', 'lanops_manager_database'),
'username' => env('DB_USERNAME', 'lanops_manager'),
'password' => env('DB_PASSWORD', 'password'),
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
Expand Down

0 comments on commit 046d03c

Please sign in to comment.