tamafull / devise_token_auth_trial

0 stars 0 forks source link

docker #25

Open tamafull opened 2 years ago

tamafull commented 2 years ago

今のところメリットほぼないけど一から設定した経験がないので一度やっておきたい

tamafull commented 2 years ago

https://docs.docker.com/samples/rails/

tamafull commented 2 years ago

日本語版あった http://docs.docker.jp/compose/rails.html

tamafull commented 2 years ago

https://hub.docker.com/_/postgres/ Postgresではパスワード設定の必要あり

tamafull commented 2 years ago

既存のプロジェクトに導入したいので

docker-compose run web rails new . --force --database=postgresql

は不要 docker-compose buildからやる

tamafull commented 2 years ago

https://github.com/docker-library/postgres/commit/42ce7437ee68150ee29f5272428aa4fc657dc6dc#diff-880c18ff2e8baabf3d17216c34d6675cc4301e4c4b39fc142a72018f092a2698R109

このコミットでエラー出るようにしてる

tamafull commented 2 years ago

https://docs.docker.jp/engine/reference/builder.html