Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoom-Developer committed Nov 3, 2024
1 parent 1b852bc commit ea833a7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
2 changes: 1 addition & 1 deletion backend/entry.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
alembic upgrade head
gunicorn main:app --worker-class uvicorn.workers.UvicornWorker --workers 3 --bind "0.0.0.0:80" --access-logfile -
gunicorn main:app --worker-class uvicorn.workers.UvicornWorker --workers 2 --bind "0.0.0.0:80" --access-logfile -
28 changes: 12 additions & 16 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ services:
test: ["CMD-SHELL", "curl -f http://backend/system/ping || exit 1"]
interval: 60s
retries: 5
start_period: 10s
start_period: 5s
timeout: 10s
deploy:
resources:
limits:
cpus: 0.7
limits: 600M
# deploy:
# resources:
# limits:
# cpus: '0.7'
# memory: 800M

bot:
build: ./bot
Expand All @@ -48,8 +48,8 @@ services:
deploy:
resources:
limits:
cpus: 0.1
memory: 50M
cpus: '0.1'
memory: 256M

db:
image: postgres:alpine
Expand All @@ -71,7 +71,7 @@ services:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER}"]
interval: 10s
retries: 5
start_period: 30s
start_period: 5s
timeout: 10s
restart: unless-stopped

Expand All @@ -96,13 +96,9 @@ services:
healthcheck:
test: rabbitmq-diagnostics check_port_connectivity
interval: 30s
timeout: 30s
retries: 10
deploy:
resources:
limits:
cpus: 0.05
memory: 80M
start_period: 5s
timeout: 5s
retries: 3

volumes:
pgdata:
Expand Down

0 comments on commit ea833a7

Please sign in to comment.