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

version: "3"
services:
  backend:
    build: backend/. 
    restart: unless-stopped
  frontend:
    depends_on:
      - backend
    environment:
      - BACKEND_HOSTNAME=backend
    build: frontend/.
    ports:
      - "80:8080"
    restart: unless-stopped

Build images directly within project
Build images directly within project
