Thank you David Kimura for your quick responses! I did set the password environment variable in the .kamal/secrets and the rails credentials. I created my rails new app with a devcontainer and a posgresql database from the start! But I can't figure out why I can't connect . Maybe any other Ideas? Thank you!
Thank you wavemind for your concern! I just start from scratch because I couldn't figure it out. I also change the name for my devcontainer/compose.yml and devcontainler.json file and used different one from my app and just worked. I don't know if that was the problem but on a second thought after your comment that you had to stop the local postgres server I give more chances to be that.
Hello David Kimura and thanks for the video, I use Kamal 2 to deploy my app to digital ocean. I also keep the logs in the server. Since kamal uses docker and Docker logs capture all the output from the processes running inside a Docker container including rails logs (correct me if I am wrong). Is there a point doing this in our production.rb :
config.logger = ActiveSupport::Logger.new("log/production.log", 5, 50.megabytes) or we should do something like this in our production.rb file config.logger = ActiveSupport::TaggedLogging.new(Logger.new(STDOUT)) and in Docker Configuration (in /etc/docker/daemon.json): { "log-driver": "json-file", "log-opts": { "max-size": "50m", "max-file": "5" } }
Thanks David Kimura , you are awesome! I have a question: If we just keep our logs in our vm where the app itself is. And we use log rotation to keep the log file small. So my question is, how can we comply with GDPR and also set a time limit? I read somewhere this: Docker's JSON file log rotation is currenly only volume-based (via the max-size and max-file options for --log-opt). However, for GDPR compliance we need time-based rotation, so that container logs are guaranteed to be deleted after e.g. 30 days.
Thanks David Kimura for your quick responses. I don't need any identifiable information of the users . How can I set docker to not keep any of these info or set a time to remove logs? I am trying to crate a cookies policy for my app and I want to comply the gdpr which tells that you can have logs for troubleshooting issues but set a time limit for you logs.