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:

version: "3.8"

volumes:
  db-data:

networks:
  instavote:
    driver: bridge

services:
  vote:
    image: xxxxx/vote:master
    ports:
      - 5000:80
    depends_on:
      - redis
    networks:
      - instavote

  redis:
    image: redis:alpine
    networks:
      - instavote

  db:
    image: postgres:9.4
    volumes:
      - "db-data:/var/lib/postgresql/data"
    networks:
      - instavote

  result:
    image: xxxxx/result:master
    ports:
      - 5001:4000
    depends_on:
      - db
    networks:
      - instavote

  worker:
    image: xxxxx/worker:latest
    depends_on:
      - redis
      - db
    networks:
      - instavote

Comments

Categories

Upcoming Training