This Rails 4.0.3 application (10+ years old) uses Ruby 2.0.0 which is incompatible with modern macOS. We've set up Docker to run it properly.
- Docker Desktop installed and running
- Docker Compose (built into Docker Desktop)
- Start Docker Desktop if not already running
- Build and start the containers:
docker compose up -d- Run database migrations and seeds:
docker compose exec web bundle exec rake db:create
docker compose exec web bundle exec rake db:migrate
docker compose exec web bundle exec rake db:seed- Access the application at http://localhost:3000
The app provides Dominican Republic reference data:
- Provinces:
http://localhost:3000/api/v1/provincias - Municipalities:
http://localhost:3000/api/v1/municipios - Cities:
http://localhost:3000/api/v1/ciudades - Holidays:
http://localhost:3000/api/v1/feriados - Companies (RNC):
http://localhost:3000/api/v1/empresas
- View logs:
docker compose logs -f web - Stop containers:
docker compose down - Rails console:
docker compose exec web bundle exec rails console - Run tests:
docker compose exec web bundle exec rake test
- The app uses an old Ubuntu 16.04 base image and Ruby 2.0.0-p648
- PostgreSQL 9.6 is used for the database
- All data is persisted in Docker volumes