Clean up docker-compose.yml and update to version 3.8.
Updated Dockerfile to follow Docker's best practices.
Added comments to help make it easier to understand for contributors not using Docker.
Running rails db:migrate causes problems with older migrations
which are broken by newer code.
Also update db/schema.rb to the latest one generated by running
rails db:migrate.