ticket-booking
ticket-booking copied to clipboard
Can not run locally
Hello,
This seems a very curious and valuable example. Wanted to look closer, tried to run it locally with:
docker compose up
Unfortunately getting different errors like:
container for service "cinema" is unhealthy
or
container for service "payment" is unhealthy
Eventually was able to run by increasing all health-check timeouts in docker compose file.
run.sh a few times and everything will start)))
./run.sh [+] Running 15/0 ✔ Container spiral-php-ticket-booking-collector-1 Running 0.0s ✔ Container spiral-php-ticket-booking-redis-1 Running 0.0s ✔ Container spiral-php-ticket-booking-zipkin-1 Running 0.0s ✔ Container db Running 0.0s ✔ Container spiral-php-ticket-booking-prometheus-1 Running 0.0s ✔ Container temporal-postgresql Running 0.0s ✔ Container spiral-php-ticket-booking-birddog-1 Running 0.0s ✔ Container spiral-php-ticket-booking-buggregator-1 Running 0.0s ✔ Container spiral-php-ticket-booking-centrifugo-rpc-1 Runn... 0.0s ✔ Container spiral-php-ticket-booking-grafana-1 Running 0.0s ✔ Container spiral-php-ticket-booking-cinema-1 Running 0.0s ✔ Container temporal-ui Running 0.0s ✔ Container spiral-php-ticket-booking-payment-1 Running 0.0s ✔ Container centrifugo Running 0.0s ✔ Container spiral-php-ticket-booking-users-1 Running 0.0s Attaching to centrifugo, db, birddog-1, buggregator-1, centrifugo-rpc-1, cinema-1, collector-1, frontend-1, grafana-1, payment-1, prometheus-1, redis-1, users-1, web-1, zipkin-1, temporal, temporal-postgresql, temporal-ui Error response from daemon: configured logging driver does not support reading
docker compose up -d [+] Running 16/16 ✔ Container spiral-php-ticket-booking-birddog-1 Running 0.0s ✔ Container spiral-php-ticket-booking-zipkin-1 Running 0.0s ✔ Container db Running 0.0s ✔ Container spiral-php-ticket-booking-prometheus-1 Running 0.0s ✔ Container temporal-postgresql Running 0.0s ✔ Container spiral-php-ticket-booking-buggregator-1 Running 0.0s ✔ Container spiral-php-ticket-booking-redis-1 Healthy 0.0s ✔ Container spiral-php-ticket-booking-collector-1 Running 0.0s ✔ Container spiral-php-ticket-booking-grafana-1 Running 0.0s ✔ Container spiral-php-ticket-booking-centrifugo-rpc-1 Heal... 0.0s ✔ Container spiral-php-ticket-booking-users-1 Running 0.0s ✘ Container spiral-php-ticket-booking-payment-1 Error 0.0s ✔ Container temporal-ui Running 0.0s ✘ Container spiral-php-ticket-booking-cinema-1 Error 0.0s ✔ Container centrifugo Running 0.0s ✔ Container temporal Started 0.0s dependency failed to start: container spiral-php-ticket-booking-payment-1 is unhealthy
cinema-1 | [Cycle\Database\Exception\StatementException\ConnectionException]
cinema-1 | SQLSTATE[08006] [7] connection to server at "db" (172.23.0.5), port 5432 failed: FATAL: the database system is starting up in vendor/cycle/database/src/Driver/Postgres/PostgresDriver.php:244
cinema-1 | [PDOException]
cinema-1 | SQLSTATE[08006] [7] connection to server at "db" (172.23.0.5), port 5432 failed: FATAL: the database system is starting up in vendor/cycle/database/src/Driver/Driver.php:641
buggregator-1 | 2024-10-29T16:44:19+0000 ERROR app Spiral\Goridge\RPC\Exception\ServiceException: Error 'rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 127.0.0.1:10000: connect: connection refused"' on tcp://127.0.0.1:6001 in /app/vendor/spiral/goridge/src/RPC/AbstractRPC.php at line 72 [] []
buggregator-1 |
buggregator-1 | 2024-10-29T16:44:19+0000 ERROR app Spiral\Goridge\RPC\Exception\ServiceException: Error 'rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 127.0.0.1:10000: connect: connection refused"' on tcp://127.0.0.1:6001 in /app/vendor/spiral/goridge/src/RPC/AbstractRPC.php at line 72 [] []
**users-1 | [Cycle\Database\Exception\StatementException\ConnectionException]
users-1 | SQLSTATE[08006] [7] connection to server at "db" (172.23.0.5), port 5432 failed: FATAL: the database system is starting up in vendor/cycle/database/src/Driver/Postgres/PostgresDriver.php:244
users-1 | [PDOException]
users-1 | SQLSTATE[08006] [7] connection to server at "db" (172.23.0.5), port 5432 failed: FATAL: the database system is starting up in vendor/cycle/database/src/Driver/Driver.php:641**
payment-1 | [Cycle\Database\Exception\StatementException\ConnectionException]
payment-1 | SQLSTATE[08006] [7] connection to server at "db" (172.23.0.5), port 5432 failed: FATAL: the database system is starting up in vendor/cycle/database/src/Driver/Postgres/PostgresDriver.php:244
payment-1 | [PDOException]
payment-1 | SQLSTATE[08006] [7] connection to server at "db" (172.23.0.5), port 5432 failed: FATAL: the database system is starting up in vendor/cycle/database/src/Driver/Driver.php:641
buggregator-1 | 2024-10-29T16:44:21+0000 ERROR app Spiral\Goridge\RPC\Exception\ServiceException: Error 'rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 127.0.0.1:10000: connect: connection refused"' on tcp://127.0.0.1:6001 in /app/vendor/spiral/goridge/src/RPC/AbstractRPC.php at line 72 [] []
buggregator-1 |
buggregator-1 | 2024-10-29T16:44:21+0000 ERROR app Spiral\Goridge\RPC\Exception\ServiceException: Error 'rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 127.0.0.1:10000: connect: connection refused"' on tcp://127.0.0.1:6001 in /app/vendor/spiral/goridge/src/RPC/AbstractRPC.php at line 72 [] []
buggregator-1 |
buggregator-1 | 2024-10-29T16:44:21+0000 ERROR app Spiral\Goridge\RPC\Exception\ServiceException: Error 'rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 127.0.0.1:10000: connect: connection refused"' on tcp://127.0.0.1:6001 in /app/vendor/spiral/goridge/src/RPC/AbstractRPC.php at line 72 [] []