docker exec -it
Here is what the above code is Doing:
1. Create a container named
2. Set the password for the postgres user to
3. Set the POSTGRES_DB environment variable to
4. Map the container’s internal 5432 port to the host’s 5432 port.
5. Run the pg_restore command to restore the database from the file.
6. Output the results to the