File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,17 @@ jobs:
1111
1212 services :
1313 neo4j :
14- image : neo4j:latest
14+ image : neo4j:5.5 # Use a stable version instead of ' latest'
1515 ports :
1616 - 7474:7474
1717 - 7687:7687
1818 env :
1919 NEO4J_AUTH : neo4j/password
20- options : --health-cmd="curl --silent --fail localhost:7474" --health-interval=10s --health-retries=5 --health-timeout=5s
20+ options :
21+ --health-cmd="curl --silent --fail http://localhost:7474"
22+ --health-interval=10s
23+ --health-retries=5
24+ --health-timeout=5s
2125
2226 steps :
2327 - name : Checkout code
2630 - name : Set up Docker Compose
2731 run : docker-compose -f docker-compose.yml up -d
2832
33+ - name : Wait for services to be ready
34+ run : |
35+ echo "Waiting for Neo4j service to be ready..."
36+ # Check if Neo4j is up and running by polling the health endpoint
37+ until curl --silent --fail http://localhost:7474; do
38+ echo "Waiting for Neo4j to become available..."
39+ sleep 5
40+ done
41+
2942 - name : Install Composer dependencies
3043 run : docker exec -t php-app composer install --no-progress --prefer-dist
3144
You can’t perform that action at this time.
0 commit comments