- adds a Dockerfile to build the app in container

- adds app to the docker-compose.yml file
This commit is contained in:
albert
2025-07-28 13:03:49 +02:00
parent 8c91d68b59
commit 90c6c8392f
2 changed files with 35 additions and 0 deletions

View File

@ -7,6 +7,20 @@ services:
- "27017:27017"
volumes:
- mongo_data:/data/db
app:
build: .
container_name: dailytrends_app
ports:
- "3000:3000"
environment:
- MONGO_URI=mongodb://mongo:27017/dailytrends
depends_on:
- mongo
volumes:
- .:/app
- /app/node_modules
command: npm run dev # for development
# change to "npm start" for production
volumes:
mongo_data: