Skip to content

Commit

Permalink
fix: add rails threads to api
Browse files Browse the repository at this point in the history
  • Loading branch information
rafasimao committed Jan 22, 2021
1 parent b348ae8 commit 3244f14
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions config/api.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ API_DATABASE=riseupapi
API_PORT=5432
API_USERNAME=riseupapi
API_PASSWORD=riseupapi

RAILS_MAX_THREADS = 1
RAILS_MIN_THREADS = 1
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ services:
env_file:
- ./config/api.env
volumes:
- api.riseup.vendor:/app/vendor
- ./apps/api:/app
ports:
- 3000:3000
Expand All @@ -48,3 +49,6 @@ services:
- ./config/database.env
ports:
- 5432:5432

volumes:
api.riseup.vendor: {}

0 comments on commit 3244f14

Please sign in to comment.