Skip to content

Commit

Permalink
Update docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vincenzopirozzideveloper authored Jun 1, 2024
1 parent 188f970 commit cfac156
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,23 @@ services:
working_dir: /var/www
volumes:
- .:/var/www
- ./php/local.ini:/usr/local/etc/php/conf.d/local.ini
ports:
- "8000:8000" # Espone la porta 8000
- "8000:8000"
networks:
- laravel
command: php artisan serve --host=0.0.0.0 --port=8000
environment:
- APP_ENV=local
- APP_DEBUG=true
- APP_KEY=base64:HdJw0+1EOzD2ChDP5rU5k9kuIXiMn1Ffre0v1xWOjfE=
- DB_CONNECTION=mysql
- DB_HOST=db
- DB_PORT=3306
- DB_DATABASE=laravel
- DB_USERNAME=laravel
- DB_PASSWORD=secret
depends_on:
- db
command: bash -c "composer install && php artisan migrate --force && php artisan serve --host=0.0.0.0 --port=8000"

db:
image: mysql:5.7
Expand Down

0 comments on commit cfac156

Please sign in to comment.