Welcome to the Linux Foundation Forum!

Lab 8: Refactoring Docker Compose to v3 Spec, version latest to master

Hi,
I think this is a mistake in version in Lab 8, the videos are correct (Chapter 10, Refactoring Docker Compose to v3 Spec)

But the PDF xxxxxx-LFS261LabExercises5.16.2022.pdf & GitHub link mentioned in PDF requires an update

The update should be specifying the version to "master" instead of "latest" to the two containers "vote" , and "result"

The following should be the code:

  1. version: "3.8"
  2.  
  3. volumes:
  4. db-data:
  5.  
  6. networks:
  7. instavote:
  8. driver: bridge
  9.  
  10. services:
  11. vote:
  12. image: xxxxx/vote:master
  13. ports:
  14. - 5000:80
  15. depends_on:
  16. - redis
  17. networks:
  18. - instavote
  19.  
  20. redis:
  21. image: redis:alpine
  22. networks:
  23. - instavote
  24.  
  25. db:
  26. image: postgres:9.4
  27. volumes:
  28. - "db-data:/var/lib/postgresql/data"
  29. networks:
  30. - instavote
  31.  
  32. result:
  33. image: xxxxx/result:master
  34. ports:
  35. - 5001:4000
  36. depends_on:
  37. - db
  38. networks:
  39. - instavote
  40.  
  41. worker:
  42. image: xxxxx/worker:latest
  43. depends_on:
  44. - redis
  45. - db
  46. networks:
  47. - instavote

Comments

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training