debug: Disable restart policy and add log volume to capture crash info
Some checks failed
Lint and Build / Lint (push) Failing after 5s
Lint and Build / Build (push) Has been skipped
Lint and Build / Docker Build (push) Has been skipped

This commit is contained in:
goose 2026-02-21 14:41:07 -03:00
parent ff68ce2646
commit 17205a4907

View file

@ -11,6 +11,8 @@ services:
- '6500:8000' - '6500:8000'
volumes: volumes:
- ./src:/app/src - ./src:/app/src
# Mount a volume to capture logs
- startup-logs:/tmp
environment: environment:
- RUST_LOG=debug - RUST_LOG=debug
- SERVER_PORT=8000 - SERVER_PORT=8000
@ -18,14 +20,14 @@ services:
- MONGODB_URI=mongodb://mongodb:27017 - MONGODB_URI=mongodb://mongodb:27017
- MONGODB_DATABASE=normogen_dev - MONGODB_DATABASE=normogen_dev
- JWT_SECRET=dev-jwt-secret-key-minimum-32-chars - JWT_SECRET=dev-jwt-secret-key-minimum-32-chars
# Disable stdout/stderr buffering
- RUST_LOG_STYLE=always - RUST_LOG_STYLE=always
depends_on: depends_on:
mongodb: mongodb:
condition: service_healthy condition: service_healthy
networks: networks:
- normogen-network - normogen-network
restart: unless-stopped # DISABLE RESTART TEMPORARILY TO DEBUG
restart: "no"
mongodb: mongodb:
image: mongo:6.0 image: mongo:6.0
container_name: normogen-mongodb-dev container_name: normogen-mongodb-dev
@ -48,6 +50,8 @@ services:
volumes: volumes:
mongodb_dev_data: mongodb_dev_data:
driver: local driver: local
startup-logs:
driver: local
networks: networks:
normogen-network: normogen-network:
driver: bridge driver: bridge