aboutsummaryrefslogtreecommitdiffhomepage
path: root/compose.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'compose.yaml')
-rw-r--r--compose.yaml21
1 files changed, 21 insertions, 0 deletions
diff --git a/compose.yaml b/compose.yaml
new file mode 100644
index 0000000..494e60f
--- /dev/null
+++ b/compose.yaml
@@ -0,0 +1,21 @@
+services:
+ db:
+ image: postgres:18
+ container_name: kioku-db
+ restart: unless-stopped
+ environment:
+ POSTGRES_USER: ${POSTGRES_USER}
+ POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
+ POSTGRES_DB: ${POSTGRES_DB}
+ expose:
+ - 5432
+ volumes:
+ - db_data:/var/lib/postgresql
+ healthcheck:
+ test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
+ interval: 10s
+ timeout: 5s
+ retries: 5
+
+volumes:
+ db_data: