Skip to content
Snippets Groups Projects

Resolve "Exercise 3 - Scaling: Mandatory features"

Merged Jesus Galaz Reyes requested to merge 17-exercise-3-scaling-mandatory-features into main
1 file
+ 17
3
Compare changes
  • Side-by-side
  • Inline
+ 17
3
version: '3.9'
services:
mongodb:
image: mongo:latest
@@ -9,14 +10,27 @@ services:
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_INITDB_ROOT_PASSWORD}
- MONGO_INITDB_DATABASE=todo-app
todo-app:
todo-app-1:
build:
context: .
dockerfile: Dockerfile
container_name: todo-app
container_name: todo-app-1
ports:
- "80:3000"
- "3001:3000"
depends_on:
- mongodb
environment:
- MONGO_URI=${MONGO_URI}
- PORT=3000
todo-app-2:
build:
context: .
dockerfile: Dockerfile
container_name: todo-app-2
ports:
- "3002:3000"
depends_on:
- mongodb
environment:
- MONGO_URI=${MONGO_URI}
\ No newline at end of file
Loading