about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-10-18 22:42:43 +0200
committerEmile <hanemile@protonmail.com>2019-10-18 22:42:43 +0200
commit4fa2649aca4610b29b4fcbe98e97c0bc718bbe7a (patch)
tree2982615f62d12912f63ae68f27fe77fb91a7241d
parent217b6d72f4c1ecb7586ab51ff6fa6c3f010016b2 (diff)
basic postgresql setup
-rw-r--r--db/docker-compose.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/db/docker-compose.yml b/db/docker-compose.yml
new file mode 100644
index 0000000..3586121
--- /dev/null
+++ b/db/docker-compose.yml
@@ -0,0 +1,12 @@
+version: '3'
+services:
+    mydb:
+        image: postgres
+        ports:
+            - "5432:5432"
+        volumes:
+            - "db-data:/var/lib/postgresql/data"
+ 
+volumes:
+    db-data:
+        driver: local