====== 2022-02-04 ====== * Back to thinking about docker containers. My container needs to do a few things. * Assume rails application data is in /opt/app * /opt/app is actually a volume set up in docker-compose * Get an environment variable for the SERVER_PORT to differentiate at the proxy level * Get the db URL from environment variable DATABASE_URL * Get PUID and PGID environment variables for user_id and group_id for new user to not screw up permissions in the volume ===== Heap: ===== ===== Leon Noel #100Devs ===== * 2 real ways to **__LEARN__** * Active Recall * After each segment, explain to yourself what you've learned * Spaced Repetition * Anki flash cards * Don't take notes, take questions * This leads into easy active recall as you go * Also allows easy card creation for Anki