Phase 2.1: Backend project initialized with Docker configuration

- Created Cargo.toml with all required dependencies
- Implemented health/ready endpoints
- Added Docker configuration (production + development)
- Configured docker-compose with resource limits
- Set up MongoDB service with persistence
- Verified build (cargo check passed)
- Prepared monorepo structure for mobile/web/shared

Next: Phase 2.2 (MongoDB connection and models)
This commit is contained in:
goose 2026-02-14 15:30:06 -03:00
parent 4dca44dbbe
commit 1e38fe3ace
11 changed files with 388 additions and 80 deletions

View file

@ -0,0 +1,10 @@
FROM rust:1.75-alpine
WORKDIR /app
RUN apk add --no-cache musl-dev pkgconf openssl-dev curl wget git pkgconfig
RUN cargo install cargo-watch
COPY Cargo.toml Cargo.lock ./
RUN mkdir src && echo 'fn main() {}' > src/main.rs
RUN cargo build && rm -rf src
COPY src ./src
EXPOSE 8000
CMD ['cargo-watch', '-x', 'run']