aboutsummaryrefslogtreecommitdiffhomepage
path: root/compose.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'compose.yaml')
-rw-r--r--compose.yaml27
1 files changed, 27 insertions, 0 deletions
diff --git a/compose.yaml b/compose.yaml
index 494e60f..9253017 100644
--- a/compose.yaml
+++ b/compose.yaml
@@ -17,5 +17,32 @@ services:
timeout: 5s
retries: 5
+ server:
+ build:
+ context: .
+ dockerfile: docker/server/Dockerfile
+ container_name: kioku-server
+ restart: unless-stopped
+ environment:
+ DATABASE_URL: ${DATABASE_URL}
+ JWT_SECRET: ${JWT_SECRET}
+ NODE_ENV: production
+ expose:
+ - 3000
+ depends_on:
+ db:
+ condition: service_healthy
+
+ client:
+ build:
+ context: .
+ dockerfile: docker/client/Dockerfile
+ container_name: kioku-client
+ restart: unless-stopped
+ ports:
+ - "80:80"
+ depends_on:
+ - server
+
volumes:
db_data: