Fix docker-compose.yml: use runtime image, remove duplicate services, fix JWT_SECRET default value
Some checks failed
Lint and Build / Lint (push) Failing after 4s
Lint and Build / Build (push) Has been skipped
Lint and Build / Docker Build (push) Has been skipped

This commit is contained in:
goose 2026-03-05 12:01:03 -03:00
parent 2231cc11c8
commit 59a360384f

View file

@ -1,28 +1,23 @@
services:
backend:
build:
context: .
dockerfile: docker/Dockerfile
args:
BUILDKIT_INLINE_CACHE: 0
pull_policy: build
image: normogen-backend:runtime
container_name: normogen-backend
ports:
- 8001:8000
- "8001:8000"
environment:
- RUST_LOG=info
- SERVER_PORT=8000
- SERVER_HOST=0.0.0.0
- MONGODB_URI=mongodb://mongodb:27017
- MONGODB_DATABASE=normogen
- JWT_SECRET=${JWT_SECRET:-please-change-this-in-production}
- JWT_SECRET=${JWT_SECRET:-please-change-this-in-production-at-least-32-characters}
depends_on:
mongodb:
condition: service_healthy
networks:
- normogen-network
restart: unless-stopped
dns_search: []
mongodb:
image: mongo:6.0
container_name: normogen-mongodb
@ -39,10 +34,11 @@ services:
retries: 5
start_period: 40s
restart: unless-stopped
dns_search: []
volumes:
mongodb_data:
driver: local
networks:
normogen-network:
driver: bridge