services: app: build: ./app ports: - "3000:3000" environment: - NODE_ENV=development depends_on: - db - redis
To view the aggregated logs of all running services: a developer's essential guide to docker compose pdf
During development, use the build directive to mount your code and reload changes automatically. For production, switch to pre-built image tags to ensure you are deploying exactly what was tested in CI/CD. services: app: build: