services: backend: build: ./backend command: npm run build && npm start env_file: - ./backend/.env ports: - "4000:4000" frontend: build: ./frontend command: npm run dev -- --host --port 5173 volumes: - ./frontend:/app - /app/node_modules env_file: - ./frontend/.env environment: ALLOWED_HOSTS: ${ALLOWED_HOSTS} ports: - "5173:5173" depends_on: - backend