debug: Disable restart policy and add log volume to capture crash info
This commit is contained in:
parent
ff68ce2646
commit
17205a4907
1 changed files with 6 additions and 2 deletions
|
|
@ -11,6 +11,8 @@ services:
|
|||
- '6500:8000'
|
||||
volumes:
|
||||
- ./src:/app/src
|
||||
# Mount a volume to capture logs
|
||||
- startup-logs:/tmp
|
||||
environment:
|
||||
- RUST_LOG=debug
|
||||
- SERVER_PORT=8000
|
||||
|
|
@ -18,14 +20,14 @@ services:
|
|||
- MONGODB_URI=mongodb://mongodb:27017
|
||||
- MONGODB_DATABASE=normogen_dev
|
||||
- JWT_SECRET=dev-jwt-secret-key-minimum-32-chars
|
||||
# Disable stdout/stderr buffering
|
||||
- RUST_LOG_STYLE=always
|
||||
depends_on:
|
||||
mongodb:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- normogen-network
|
||||
restart: unless-stopped
|
||||
# DISABLE RESTART TEMPORARILY TO DEBUG
|
||||
restart: "no"
|
||||
mongodb:
|
||||
image: mongo:6.0
|
||||
container_name: normogen-mongodb-dev
|
||||
|
|
@ -48,6 +50,8 @@ services:
|
|||
volumes:
|
||||
mongodb_dev_data:
|
||||
driver: local
|
||||
startup-logs:
|
||||
driver: local
|
||||
networks:
|
||||
normogen-network:
|
||||
driver: bridge
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue