version: '3'
services:
  backend:
    build: ./backend
    ports:
      - "5000:5000"
    volumes:
      - data:/data
    env_file:
      - ./.env
  frontend:
    build: ./frontend
    ports:
      - "8080:8080"
    env_file:
      - ./.env
  db:
    container_name: database
    image: postgres:latest
    ports:
    - "5400:5432"
volumes:
  data:
    external: false
version: '3'
services:
  backend:
    build: ./backend
    ports:
      - "5000:5000"
    volumes:
      - data:/data
    env_file:
      - ./.env
  frontend:
    build: ./frontend
    ports:
      - "8080:8080"
    env_file:
      - ./.env
  db:
    container_name: database
    image: postgres:latest
    ports:
    - "5400:5432"
    env_file:
      - ./.env
volumes:
  data:
    external: false
Revert "unneccessary env file in database host"
Revert "unneccessary env file in database host"

This reverts commit 874f84731f6a0cfb9d779f4d5de36876b4ef9851.
