Table of Contents
2022-02-04
Heap:
Leon Noel #100Devs
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