refactor: Move docker-compose.dev.yml to backend/ directory for better organization
This commit is contained in:
parent
dd95aadb62
commit
fce388bdf7
3 changed files with 3579 additions and 58 deletions
|
|
@ -8,14 +8,15 @@ services:
|
|||
pull_policy: build
|
||||
container_name: normogen-backend-dev
|
||||
ports:
|
||||
- '6800:8000'
|
||||
- '6500:8000'
|
||||
volumes:
|
||||
- ./src:/app/src
|
||||
environment:
|
||||
- RUST_LOG=debug
|
||||
- SERVER_PORT=8000
|
||||
- SERVER_HOST=0.0.0.0
|
||||
- MONGODB_URI=mongodb://mongodb:27017
|
||||
- DATABASE_NAME=normogen_dev
|
||||
- MONGODB_DATABASE=normogen_dev
|
||||
- JWT_SECRET=dev-jwt-secret-key-minimum-32-chars
|
||||
depends_on:
|
||||
mongodb:
|
||||
|
|
@ -32,14 +33,9 @@ services:
|
|||
- 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue