The frontend service runs a React web application.
The frontend service builds an image from the ../frontend directory.
The frontend service depends on the backend service.
The frontend service uses environment variables from the ../frontend/.env file.
The frontend service exposes port ${FRONTEND_PORT}.
The frontend service restarts unless stopped.
The frontend service mounts the ./app directory as a volume.
The backend service runs a Node.js server.
The backend service builds an image from the ../backend directory.
The backend service depends on the db service.
The backend service uses environment variables from the ../backend/.env file.
The backend service exposes port ${BACKEND_PORT}.
The backend service restarts on failure.
The backend service mounts the ./app directory as a volume.
The db service runs a PostgreSQL database.
The db service uses the postgres image.
The db service exposes port ${DATABASE_PORT}.
The db service uses environment variables from the ../backend/.env file.
The db service restarts unless stopped.
The db service mounts the ./data directory as a volume.