Set up monorepo Docker development

This commit is contained in:
2026-09-19 20:56:07 +02:00
parent ab4cfe40c8
commit 5b45203c14
13 changed files with 33 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
services:
server:
build:
context: ./server
dockerfile: Dockerfile
init: true
environment:
HOST: 0.0.0.0
PORT: 3000
RUST_LOG: info
ports:
- "3000:3000"
volumes:
- ./server:/app
- server-target:/app/target
volumes:
server-target:
+5
View File
@@ -0,0 +1,5 @@
/target
.git
.env
.vscode
.DS_Store
+1
View File
@@ -1,2 +1,3 @@
/target /target
.env .env
.DS_Store
View File
View File
+9
View File
@@ -0,0 +1,9 @@
FROM rust:bookworm
RUN cargo install cargo-watch --locked
WORKDIR /app
EXPOSE 3000
CMD ["cargo", "watch", "--watch", "src", "--watch", "Cargo.toml", "--watch", "Cargo.lock", "--exec", "run --locked"]
View File
View File