Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker setup for production deployment #265

Merged
merged 54 commits into from Apr 27, 2019

Conversation

Projects
None yet
2 participants
@michiels
Copy link
Member

commented Apr 24, 2019

This is a continuation of @ariejan's excellent work he's already done in #242, making it possible to deploy Intercity via Docker and Docker Compose. I'll fill up this PR body with todos while I test using the work so far as production deployment system.

Todo

  • Fix issue with nginx-proxy constantly reloading and failing on dh_param generation
  • Allow moving running Intercity with only the Docker Compose file and without having to check out the repository.
  • Fix issue where assets weren't served because /app/public would be overwritten.
  • Log Rails output to STDOUT so that it can be offloaded to a logging service
  • Use Docker volumes instead of ./data directory
  • Use Docker volumes for Postgres and Redis
  • Have Rails serve static assets so we're not dependent on the config/nginx.conf file to be pulled down by the installation bootstrap script.

ariejan and others added some commits Jul 26, 2018

Downgrade to 2.4.2
2.5.1 gaves problems with Net::SSH, which needs
more investigation.
Setup .env during setup
This sets up the FQDN, Letsencrypt and generates
a new SECRET_KEY_BASE for Rails.

michiels added some commits Apr 25, 2019

Add RAILS_LOG_TO_STDOUT and RAILS_SERVE_STATIC_FILES so that logs can…
… be easily offloaded to an external logging service
Prevent nginx-proxy from generating DH params
This is handled by the letsencrypt companion

@michiels michiels merged commit 52805d5 into master Apr 27, 2019

1 check passed

ci/circleci Your tests passed on CircleCI!
Details

@michiels michiels deleted the pr/242 branch Apr 27, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.