edited docker config for backend

This commit is contained in:
2025-11-03 21:12:58 +01:00
parent 3438321765
commit 3e67bf9052
3 changed files with 11 additions and 7 deletions

View File

@@ -19,15 +19,19 @@ services:
ports:
- "8002:8002"
environment:
NODE_ENV: production
DB_HOST: mysql
DB_USER: root
DB_PASSWORD: ${DB_PASSWORD}
DB_NAME: borrow_system
depends_on:
- mysql
volumes:
- ./backend:/borrow_system-backend
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:8002/server-info"]
interval: 30s
timeout: 5s
retries: 3
mysql:
container_name: borrow_system-mysql