You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bootcamp/materials/1-dimensional-data-modeling/README.md
+28-13Lines changed: 28 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,9 @@ For detailed instructions and more information, please refer to the step-by-step
39
39
40
40
There are two methods to get Postgres running locally.
41
41
42
+
>**Prefer Docker**
43
+
> Unless you want to use a local Postgres install—or must run on bare-metal / low-power hardware—use **Option 2 (Docker)**. It’s easy to reset and leaves your host machine clean.
44
+
42
45
### 💻 **Option 1: Run on local machine**
43
46
44
47
1. Install Postgres
@@ -57,14 +60,15 @@ There are two methods to get Postgres running locally.
57
60
58
61
### 🐳 **Option 2: Run Postgres and PGAdmin in Docker**
59
62
60
-
- Install Docker Desktop from **[here](https://www.docker.com/products/docker-desktop/)**.
This stores the database credentials, plus email and password used by pgAdmin and Postgres.
70
+
71
+
3. **Start the Docker Compose stack**:
68
72
- If you're on Mac:
69
73
70
74
```bash
@@ -77,16 +81,25 @@ There are two methods to get Postgres running locally.
77
81
docker compose up -d
78
82
```
79
83
80
-
- Two volumes will be created:
81
-
- **`1-dimensional-data-modeling_postgres-data`** The data backing your Postgres instance will be saved here.
82
-
- **`1-dimensional-data-modeling_pgadmin-data`** The data backing your PGAdmin instance will be saved here.
83
-
- You can check that your Docker Compose stack is running by either:
84
-
- Going into Docker Desktop: you should see an entry there with a drop-down for each of the containers running in your Docker Compose stack.
85
-
- Running **`docker ps -a`** and looking for the containers with the name **`postgres`**.
86
-
- If you navigate to **`http://localhost:5050`**, you'll see the PGAdmin instance up and running and should be able to connect to the following server using the details shown below:
87
-
84
+
Two volumes will be created:
85
+
- **`1-dimensional-data-modeling_postgres-data`** The data backing your Postgres instance will be saved here.
86
+
- **`1-dimensional-data-modeling_pgadmin-data`** The data backing your PGAdmin instance will be saved here.
87
+
88
+
4. **Check that your Docker Compose stack is running**:
89
+
- **Docker Desktop**: you should see an entry there with a drop-down for each of the containers running in your Docker Compose stack.
90
+
- **CLI**: Running **`docker ps -a`** and looking for the containers with the name **`postgres`**.
0 commit comments