fix: Clean up Docker configuration and resolve build issues

- Fix Windows line endings (CRLF) in docker-build.sh script
- Remove deprecated 'version' field from docker-compose.dev.yml
- Standardize database URL paths across compose files
- Optimize Dockerfile.production with better pip upgrade handling
- Improve health check timings for better container startup
- Add comprehensive Docker usage documentation
- Ensure all Docker files use consistent formatting and best practices

All Docker builds now work correctly and containers start successfully.
This commit is contained in:
HotSwapp
2025-09-04 17:54:57 -05:00
parent a7a03f8369
commit 16d7455f85
5 changed files with 90 additions and 11 deletions

View File

@@ -1,5 +1,3 @@
version: '3.8'
services:
delphi-db:
build:
@@ -11,7 +9,7 @@ services:
ports:
- "${EXTERNAL_PORT:-6920}:8000"
environment:
- DATABASE_URL=${DATABASE_URL:-sqlite:///data/delphi_database.db}
- DATABASE_URL=${DATABASE_URL:-sqlite:///app/data/delphi_database.db}
- SECRET_KEY=${SECRET_KEY:-dev-secret-key-not-for-production}
- DEBUG=${DEBUG:-True}
- ACCESS_TOKEN_EXPIRE_MINUTES=${ACCESS_TOKEN_EXPIRE_MINUTES:-120}