Skip to content

Commit

Permalink
add auto install modules and migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
srgoogle23 committed Dec 28, 2024
1 parent d7fb650 commit 91117cd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ services:
container_name: encurtador
image: hyperf/hyperf:8.3-alpine-v3.20-swoole
working_dir: /app
entrypoint: ["php", "bin/hyperf.php", "server:watch"]
entrypoint: >
/bin/sh -c "
composer install &&
php bin/hyperf.php migrate &&
php bin/hyperf.php server:watch
"
volumes:
- ./:/app
ports:
Expand Down

0 comments on commit 91117cd

Please sign in to comment.