When running docker-compose on older version of YAML for voting machine, the docker-compose up throws an error where it states that
ERROR: for worker Cannot start service worker: Cannot link to a non running container: /example-voting-app_db_1 AS /example-voting-app_worker_1/db
ERROR: for result Cannot start service result: Cannot link to a non running container: /example-voting-app_db_1 AS /example-voting-app_result_1/db_1
I replicated the same issue. I think the problem is that in the docker-compose.yml file in the first demo (using old compose version) the user/pass of the db is not set. In my case I solved it by adding those to the yml file: