aboutsummaryrefslogtreecommitdiffstats
path: root/compose.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'compose.yaml')
-rw-r--r--compose.yaml24
1 files changed, 24 insertions, 0 deletions
diff --git a/compose.yaml b/compose.yaml
new file mode 100644
index 0000000..86a4656
--- /dev/null
+++ b/compose.yaml
@@ -0,0 +1,24 @@
+services:
+ app:
+ image: spliit2:latest
+ ports:
+ - 3000:3000
+ env_file:
+ - container.env
+ depends_on:
+ db:
+ condition: service_healthy
+
+ db:
+ image: postgres:latest
+ ports:
+ - 5432:5432
+ env_file:
+ - container.env
+ volumes:
+ - /var/lib/postgresql/data:/var/lib/postgresql/data
+ healthcheck:
+ test: ["CMD-SHELL", "pg_isready -U postgres"]
+ interval: 5s
+ timeout: 5s
+ retries: 5