From 0c90ef795b9a76f902376e6c720520c7d14ecc55 Mon Sep 17 00:00:00 2001
From: Awiteb
Date: Wed, 26 Jun 2024 23:00:57 +0300
Subject: [PATCH] chore: Add docker-compose.yml
Signed-off-by: Awiteb
---
docker-compose.yml | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
create mode 100644 docker-compose.yml
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..a350389
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,25 @@
+version: '3'
+services:
+ oxidetalis:
+ container_name: oxidetalis
+ build:
+ context: ./
+ dockerfile: ./crates/oxidetalis/Dockerfile
+ environment:
+ - OXIDETALIS_CONFIG=/app/config.toml
+ ports:
+ - 8000:8000
+ depends_on:
+ - db
+ volumes:
+ - ./config.toml:/app/config.toml
+ db:
+ container_name: oxidetalis_postgres
+ image: postgres:latest
+ environment:
+ POSTGRES_USER: oxidetalis
+ POSTGRES_PASSWORD: oxidetalis
+ POSTGRES_DB: oxidetalis_db
+ # This for devlopment only
+ ports:
+ - 5432:5432