Skip to content

Commit

Permalink
ci: setup laravel on container
Browse files Browse the repository at this point in the history
  • Loading branch information
gianni committed Feb 23, 2024
1 parent 966d81d commit fb074e9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ services:
- ./docker/.env_florence:/var/www/html/.env
- ./docker/apache/sites-enabled/bibliobooks_florence.conf:/etc/apache2/sites-available/000-default.conf
working_dir: /var/www/html
command: bash -c "composer install && php artisan key:generate && php artisan migrate && php artisan db:seed && chown -R www-data:www-data storage bootstrap"
ports:
- "8001:80"
depends_on:
Expand All @@ -28,6 +29,7 @@ services:
- ./docker/.env_milan:/var/www/html/.env
- ./docker/apache/sites-enabled/bibliobooks_milan.conf:/etc/apache2/sites-available/000-default.conf
working_dir: /var/www/html
command: bash -c "composer install && php artisan key:generate && php artisan migrate && php artisan db:seed && chown -R www-data:www-data storage bootstrap"
ports:
- "8002:80"
depends_on:
Expand Down
2 changes: 1 addition & 1 deletion docker/.env_florence
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
APP_NAME="Bibliobooks Florence"
APP_ENV=local
APP_KEY=base64:zT80BRHQzYQyAMm83ACwJGVTSELMbxR1DaDzIFwk3Hw=
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost:8001

Expand Down
2 changes: 1 addition & 1 deletion docker/.env_milan
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
APP_NAME="Bibliobooks Milan"
APP_ENV=local
APP_KEY=base64:zT80BRHQzYQyAMm83ACwJGVTSELMbxR1DaDzIFwk3Hw=
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost:8002

Expand Down

0 comments on commit fb074e9

Please sign in to comment.