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'
|
- '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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue