aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
diff options
context:
space:
mode:
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..047c9d3
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,22 @@
+version: '3'
+
+services:
+ db:
+ image: postgres:14-alpine
+ environment:
+ POSTGRES_PASSWORD: postgres
+ ports:
+ - 54321:5432
+ volumes:
+ - dbdata:/var/lib/postgresql/data
+ api:
+ build: .
+ image: eu.gcr.io/slam-lang/slam-example-api
+ environment:
+ PORT: 3000
+ PGHOST: db
+ ports:
+ - 3000:3000
+
+volumes:
+ dbdata: