AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Pgcli create table example1/11/2024 ![]() ![]() Let's add a directory called ny_taxi_postgres_data next to the Dockerfile we created last week. The process of pairing these two directories is called mounting. Since we are using containers, and these don't keep the state, we need to allow Postgres to access a directory in the host system, i.e., we need to map a directory in the host machine to a directory in the container for keeping the data. Postgres needs to keep files in a filesystem to store and retrieve the data. We will do this with the docker run command, adding the -e flag before the environment variable name. To properly provision the database, we must set a few environment variables.
0 Comments
Read More
Leave a Reply. |