Skip to content

Add Docker Support for Development and Deployment #139

@Ahmedhossamdev

Description

@Ahmedhossamdev

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

  • Dockerfile created with multi-stage build
  • .dockerignore file created
  • docker-compose.yml created for production
  • docker-compose.dev.yml created for development
  • README.markdown updated with Docker instructions
  • CLAUDE.md updated 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 maglev starts the server
  • docker-compose up works 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)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions