aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
diff options
context:
space:
mode:
authorJan Tuomi <jan.tuomi@valuemotive.com>2021-04-18 20:10:34 +0300
committerJan Tuomi <jan.tuomi@valuemotive.com>2021-04-18 20:10:34 +0300
commitcf2e3c99ded0f48bd565858aedc7f10a0d932a61 (patch)
tree699e9c6b78456474b4b0e680a15a6b1bc49aab08 /docker-compose.yml
parentbaacc7676c688cd2728033e9051208d655255ee5 (diff)
Add db connection
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..dc39ea7
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,22 @@
+version: '3.8'
+
+services:
+ db:
+ image: postgres:13-alpine
+ environment:
+ POSTGRES_PASSWORD: postgres
+ ports:
+ - 5432:5432
+ volumes:
+ - dbdata:/var/lib/postgresql/data
+ - ./sql:/sql
+ hommabot2:
+ build: .
+ image: eu.gcr.io/jan-systems/hommabot2:latest
+ environment:
+ PORT: 3000
+ ports:
+ - 3000:3000
+
+volumes:
+ dbdata: