services: moku-frontend-dev: container_name: moku-frontend-dev build: context: ./Frontend target: development ports: - ${FRONTEND_PORT}:5432 volumes: - ./Frontend:/app # Install node_modules if not present command: sh -c "if [ ! -d node_modules ]; then pnpm install; fi && pnpm dev --port 5432 --host" profiles: - dev moku-frontend-prod: container_name: moku-frontend-prod build: context: ./Frontend target: production ports: - ${FRONTEND_PORT}:80 profiles: - prod