Dockerfile

This commit is contained in:
iwnuplynottyan
2025-11-09 13:31:06 +02:00
parent c988c762a9
commit d3616e33ad
2 changed files with 49 additions and 0 deletions

27
docker-compose.yml Normal file
View File

@@ -0,0 +1,27 @@
services:
backend:
build:
context: .
dockerfile: .
container_name: neomovies-backend
ports:
- "4000:3000"
env_file:
- .env
environment:
- MONGO_URI=mongodb://db:27017/neomovies
- BASE_URL=http://localhost:3000
- FRONTEND_URL=http://localhost:3001
- NODE_ENV=production
restart: unless-stopped
depends_on:
- db
db:
image: mongo:4.4
container_name: neomovies-database
ports:
- "27017:27017"
volumes:
- ~/files/docker/neomovies-database:/data/db
restart: unless-stopped