version: "3.9" services: nextjs: build: . container_name: cmc_nextjs_pro ports: - "9012:3000" env_file: - .env # <-- tell Docker to use the .env file restart: unless-stopped volumes: - .:/app - /app/node_modules