aula-01: Docker Compose com restart policy

App Node.js que trava após MAX_REQUESTS para demonstrar
como o Docker Compose lida com containers que falham.
This commit is contained in:
Allyson de Paula
2025-12-25 13:31:02 -03:00
commit 1ea1a98e60
3 changed files with 48 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
services:
node-app:
image: node:24-alpine
container_name: node-bugado
working_dir: /app
volumes:
- ./app.js:/app/app.js
command: node app.js
ports:
- "3000:3000"
restart: always