normogen/backend/docker-compose.dev.yml
goose 51b7d75dca chore: Clean up temporary docs and start Phase 2.4
- Remove 28+ temporary debugging documentation files
- Remove temporary test scripts and log files
- Keep only essential files (quick-test.sh, EDITION2024-FIX.md)
- Create PHASE-2.4-SPEC.md with complete feature specifications
- Update STATUS.md with current progress and recent issues
- Ready to begin Phase 2.4 implementation
2026-02-15 16:33:36 -03:00

55 lines
1.3 KiB
YAML

services:
backend:
build:
context: .
dockerfile: docker/Dockerfile.dev
args:
BUILDKIT_INLINE_CACHE: 0
pull_policy: build
container_name: normogen-backend-dev
ports:
- '6800:8000'
volumes:
- ./src:/app/src
environment:
- RUST_LOG=debug
- SERVER_PORT=8000
- MONGODB_URI=mongodb://mongodb:27017
- DATABASE_NAME=normogen_dev
- JWT_SECRET=dev-jwt-secret-key-minimum-32-chars
depends_on:
mongodb:
condition: service_healthy
networks:
- normogen-network
restart: unless-stopped
mongodb:
image: mongo:6.0
container_name: normogen-mongodb-dev
ports:
- '27017:27017'
environment:
- MONGO_INITDB_DATABASE=normogen_dev
volumes:
- mongodb_dev_data:/data/db
# For debugging: mount host directory instead
# - ./mongodb-data:/data/db
networks:
- normogen-network
# Fix: Explicitly set user to avoid permission issues
user: mongodb:mongodb
# Alternative: Run as root but fix ownership
# user: root
healthcheck:
test: |
echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
interval: 10s
timeout: 5s
retries: 5
start_period: 60s
volumes:
mongodb_dev_data:
driver: local
networks:
normogen-network:
driver: bridge