Skip to content

Commit

Permalink
Unify ingestion server and indexer worker config
Browse files Browse the repository at this point in the history
  • Loading branch information
AetherUnbound committed Jul 12, 2023
1 parent a127304 commit e024346
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 49 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ services:
args: # Automatically inferred from env vars, unless specified
- INGESTION_PY_VERSION
image: openverse-ingestion_server
command: gunicorn -c ./gunicorn_worker.conf.py
command: gunicorn indexer_worker:api --bind 0.0.0.0:8002
expose:
- "8002"
depends_on:
Expand Down
2 changes: 1 addition & 1 deletion ingestion_server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ COPY --chown=ingestionu . /ingestion_server/
# - 8002: Gunicorn server for `indexer_worker` Falcon app
EXPOSE 8001 8002

CMD ["gunicorn", "-c", "./gunicorn.conf.py"]
CMD ["gunicorn", "--bind", "0.0.0.0:8001", "api:api"]
2 changes: 0 additions & 2 deletions ingestion_server/gunicorn.conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
bind = ["0.0.0.0:8001"]
capture_output = True
accesslog = "-"
errorlog = "-"
Expand Down Expand Up @@ -42,4 +41,3 @@
},
}
loglevel = "debug"
wsgi_app = "api:api"
45 changes: 0 additions & 45 deletions ingestion_server/gunicorn_worker.conf.py

This file was deleted.

0 comments on commit e024346

Please sign in to comment.