Docker compose example voting app, redis/postgres fail to start

Using docker desktop on windows 10. Course has been going fine up to this point. Docker compose up results in either redis or postgres failing to start properly. Example error:
dependency failed to start: container for service “redis” is unhealthy

If I run docker compose up again, I get:
dependency failed to start: container for service “db” is unhealthy

Subsequent docker compose ups will result in these two errors alternating. I have tried tinkering with health check intervals, but this doesn’t work. Services start okay if I manually start each one, but docker compose always fails.

Any advice?

Hello @spamin8r
Please try with this repo GitHub - mmumshad/example-voting-app: Example Docker Compose app
Create/build the docker images for (vote, result, and worker) and then use the docker-compose file.