aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
diff options
context:
space:
mode:
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml45
1 files changed, 45 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..1c3a756
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,45 @@
+version: "3.6"
+
+services:
+ postgres:
+ image: postgres:12
+ environment:
+ POSTGRES_PASSWORD: postgres
+ ports:
+ - 5433:5432
+ volumes:
+ - dbdata:/var/lib/postgresql/data
+
+ postgrest_api:
+ build: ./postgrest
+ environment:
+ JWT_SECRET: ${JWT_SECRET}
+ depends_on:
+ - postgres
+ ports:
+ - 3000:3000
+
+ login_service:
+ build: ./login-service
+ command: npm run dev
+ environment:
+ JWT_SECRET: ${JWT_SECRET}
+ depends_on:
+ - postgrest_api
+ ports:
+ - 4000:4000
+ volumes:
+ - ./login-service/src:/app/src
+
+ frontend:
+ build: ./frontend
+ depends_on:
+ - login_service
+ ports:
+ - 5000:5000
+ - 40000:40000
+ volumes:
+ - ./frontend/src:/app/src
+
+volumes:
+ dbdata: