aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-08-17 14:30:29 +0100
committerGravatar Joe Banks <[email protected]>2024-08-17 14:30:29 +0100
commitc4323e8c210ea36e284474a822a11a97d16b1fd3 (patch)
tree15e0f964366e1073240e66cbcba1e373cd9c58d0
parentAdd development Dockerfile for frontend (diff)
Add frontend to docker-compose
-rw-r--r--docker-compose.yml14
1 files changed, 13 insertions, 1 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index a82221f..3abedce 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -14,7 +14,7 @@ services:
ports:
- "15432:5432"
- thallium:
+ thallium-backend:
build: thallium-backend
restart: unless-stopped
command: ["alembic upgrade head && uvicorn src.app:fastapi_app --host 0.0.0.0 --port 8000 --reload"]
@@ -30,3 +30,15 @@ services:
depends_on:
postgres:
condition: service_healthy
+
+ thallium-frontend:
+ build:
+ context: thallium-frontend
+ dockerfile: Dockerfile.development
+ restart: unless-stopped
+ volumes:
+ # Once https://github.com/vitejs/vite/issues/9470 has a nice solution, we can make the mount read-only
+ - ./thallium-frontend:/app
+ - /app/node_modules
+ ports:
+ - "5173:5173"