We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e654ba6 commit c063acfCopy full SHA for c063acf
postgres/README.md
@@ -0,0 +1,15 @@
1
+# Enter the Container w/ Bash
2
+
3
+`docker-compose exec --user root db /bin/bash`
4
5
+# Enter the Postgres Shell
6
7
+`docker-compose exec --user root db psql -h localhost -U postgres`
8
9
+# Create a DB
10
11
+While inside the shell, run the following:
12
13
+```
14
+CREATE DATABASE mydatabase;
15
postgres/docker-compose.yml
@@ -0,0 +1,9 @@
+version: '3'
+services:
+ db:
+ image: postgres:latest
+ volumes:
+ - ./data:/var/lib/postgresql/data
+ ports:
+ - 5432:5432
0 commit comments