Skip to content

Commit

Permalink
Fix deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
danieltrolezi committed Sep 21, 2024
1 parent 2d80463 commit d4ca54d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ services:
depends_on:
mysql:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/up"]
interval: 5s
timeout: 10s
retries: 5
networks:
- bridge

Expand All @@ -28,7 +33,8 @@ services:
ports:
- '80:80'
depends_on:
- octane
octane:
condition: service_healthy
networks:
- bridge

Expand Down
2 changes: 1 addition & 1 deletion docker/entrypoint.app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ case "$RUN_MODE" in
if [ "$APP_ENV" == "local" ]; then
php artisan octane:swoole --host=0.0.0.0 --watch
else
php artisan octane:swoole --host=0.0.0.0 --workers=4 --task-workers=4
php artisan octane:swoole --workers=4 --task-workers=4
fi
;;
notif)
Expand Down
1 change: 1 addition & 0 deletions ecs/deployment-task.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"portMappings": [
{
"containerPort": 8000,
"hostPort": 8000,
"protocol": "tcp"
}
],
Expand Down

0 comments on commit d4ca54d

Please sign in to comment.