| services: | |
| app: | |
| build: . | |
| ports: | |
| - "3000:3000" | |
| env_file: .env | |
| # ponytail: image defaults to production `next start` for deploys; dev wants hot reload | |
| environment: | |
| NODE_ENV: development | |
| command: ["./node_modules/.bin/next", "dev", "--hostname", "0.0.0.0"] | |
| volumes: | |
| - .:/app | |
| # ponytail: anonymous volumes keep the image's linux-built deps, not the host's | |
| - /app/node_modules | |
| - /app/.next | |