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
Merged
Changes from 1 commit
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
4949816
Update ruby to 2.5.1
ariejan Jul 26, 2018
121ce9e
Configure Redis the correct way
ariejan Jul 26, 2018
980d660
Version migrations
ariejan Jul 26, 2018
cdf63fa
Update redis configuration / singlton
ariejan Jul 26, 2018
7ca26eb
Update database config for production
ariejan Jul 26, 2018
225c225
Configure docker / compose
ariejan Jul 26, 2018
98f5af4
Add nginx reverse proxy
ariejan Jul 27, 2018
8fa6a81
Add setup script
ariejan Jul 27, 2018
8892ca7
Don't publish secret key to redis
ariejan Jul 27, 2018
465015f
Compile assets in docker image
ariejan Jul 27, 2018
ade5b84
add env.example
ariejan Jul 27, 2018
ea2f4ea
Add Letsencrypt
ariejan Jul 27, 2018
3a3436c
Final Letsencrypt tweaks
ariejan Jul 27, 2018
875af79
restart when needed
ariejan Jul 27, 2018
ac18e8d
Remove docker networks
ariejan Jul 27, 2018
f557cf3
Wait for Intercity to fully boot during setup
ariejan Jul 27, 2018
5300319
Remove db hostname
ariejan Jul 27, 2018
19a122b
Persist data in ./data
ariejan Jul 27, 2018
f72aa60
Downgrade to 2.4.2
ariejan Jul 29, 2018
bee283d
Setup .env during setup
ariejan Jul 30, 2018
6eabcba
Run intercity:seed_plugins on boot
ariejan Jul 30, 2018
ab351d2
Merge branch 'master' into pr/242
michiels Apr 24, 2019
148b943
Set default UTF-8 LANG
michiels Apr 24, 2019
d213b04
Use recommended Ruby
michiels Apr 24, 2019
f4aaac0
Make sure new bundler version 2 is installed when creating Docker image
michiels Apr 25, 2019
0c04437
Put all shared data on host filesystem
michiels Apr 25, 2019
e88d480
Rename env.example to intercity.env.example for production deployments
michiels Apr 25, 2019
91ffabf
Ignore intercity.env
michiels Apr 25, 2019
31b6477
Do not mount /app/public as that prevents us from serving compiled as…
michiels Apr 25, 2019
ae50502
Move dynamic ENV vars into env_file so someone doesn't have to define…
michiels Apr 25, 2019
195941a
Add RAILS_LOG_TO_STDOUT and RAILS_SERVE_STATIC_FILES so that logs can…
michiels Apr 25, 2019
ace0062
Use a volume for app public data so compiled assets and default files…
michiels Apr 25, 2019
a1c00c0
Prevent nginx-proxy from generating DH params
michiels Apr 25, 2019
cea0984
Use nginx-proxy:alpine because of a bug in default
michiels Apr 25, 2019
137ff69
Use Docker volumes for certs, vhost, and html
michiels Apr 25, 2019
72b1c4a
Disable static file serving for Rails app
michiels Apr 25, 2019
af0d637
Use list style syntax for env vars
michiels Apr 25, 2019
384efc5
Remove nginx depends on app
michiels Apr 25, 2019
44a85fa
Use Docker volumes for redis and postgres data
michiels Apr 25, 2019
2dc5ff9
Revert back to pass in ENV to container from ENV
michiels Apr 25, 2019
3a868bc
Put configuration into intercity.env instead of .env
michiels Apr 25, 2019
3d1b6ab
Add step to setup to pull down docker-compose.yml
michiels Apr 25, 2019
a2a12a4
Rename scripts/setup to bootstrap.sh
michiels Apr 25, 2019
a29da08
Correct env file fixes
michiels Apr 25, 2019
e6501cb
Fetch correct bootstrap.sh
michiels Apr 25, 2019
b7b245e
Fix space in file check
michiels Apr 25, 2019
ea36f34
Don't include build context in docker compose
michiels Apr 25, 2019
7abdfe7
Fetch ENVs from file
michiels Apr 25, 2019
0c5ae35
Also put VIRTUAL_HOST and LETSENCRYPT_HOST in intercity.env
michiels Apr 25, 2019
9e79973
Put back static asset serving for Rails
michiels Apr 25, 2019
20cd8b7
Remove commented out old secret_token initializer
michiels Apr 25, 2019
4db7251
Add comment on keeping nginx.conf
michiels Apr 26, 2019
88b3af3
Add coment with reason for fetching docker-compose.yml
michiels Apr 26, 2019
5f2c156
Add changelog entries for updated Bundler and docker deployment
michiels Apr 27, 2019
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Update database config for production

  • Loading branch information...
ariejan committed Jul 26, 2018
commit 7ca26ebbfd04effda2a976d883b25252ad732c67
@@ -14,5 +14,7 @@ test:
production:
<<: *default
database: intercity
host: <%= ENV["DB_SOCKET"] %>
host: db
username: postgres
password:
pool: 50
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.