-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
Description
Description
Add Docker and Docker Compose support to make it easier for developers to get started with the project and to simplify deployment. This will provide a consistent development environment across different platforms and streamline the deployment process.
Acceptance Criteria
-
Dockerfilecreated with multi-stage build -
.dockerignorefile created -
docker-compose.ymlcreated for production -
docker-compose.dev.ymlcreated for development -
README.markdownupdated with Docker instructions -
CLAUDE.mdupdated with Docker information - Makefile includes Docker targets
- Docker build completes successfully
- Application runs correctly in Docker container
- Health check works properly
- Volumes are properly configured for data persistence
- Documentation is clear and complete
Testing & Verification
-
docker build -t maglev .completes successfully -
docker run -p 4000:4000 maglevstarts the server -
docker-compose upworks correctly - API accessible at
http://localhost:4000/api/where/current-time.json?key=test - Configuration can be modified via mounted volumes
- GTFS database persists across container restarts
- Health check returns healthy status
- Logs output to stdout/stderr correctly
- Image size is optimized (multi-stage build keeps it small)