version: "3"
services:
  backend:
    image: bendahl/todo-backend:1.0 
    ports:
      - "8081:8081"
  frontend:
    depends_on:
      - backend
    environment:
      - BACKEND_HOSTNAME=backend
    image: bendahl/todo-frontend:1.0
    ports:
      - "8080:8080"

version: "3"
services:
  backend:
    image: bendahl/todo-backend:1.0 
    ports:
      - "8081:8081"
  frontend:
    depends_on:
      - backend
    environment:
      - BACKEND_HOSTNAME=backend
    image: bendahl/todo-frontend:1.0
    ports:
      - "80:8080"

Use port 80 for web frontend
Use port 80 for web frontend
