Skip to content

Commit

Permalink
Merge pull request #10 from muditchaudhary/stress_test
Browse files Browse the repository at this point in the history
Add docker setup and docker compose for stress testing
  • Loading branch information
muditchaudhary authored Dec 16, 2022
2 parents 4f3bacb + 32f560e commit b701768
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docker-compose_stress_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: "3"

services:
worker:
build: ./worker
command: gunicorn -w 3 api:app --bind 0.0.0.0:9999 --timeout=100
volumes:
- type: volume
source: shared_volume
target: /shared_volume
restart: always

nginx:
build:
context: ./load_balancer
dockerfile: Dockerfile
depends_on:
- worker
ports:
- "127.0.0.1:5100:5100"
restart: always

volumes:
shared_volume:

0 comments on commit b701768

Please sign in to comment.