Skip to content
This repository has been archived by the owner on Sep 3, 2023. It is now read-only.

Commit

Permalink
Fixed nginx logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowXBoss696 committed May 21, 2023
1 parent c5e975b commit ff263c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
9 changes: 3 additions & 6 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ version: '3.8'

services:
webapp:
build:
context: .
image: jukebox
command: ["uvicorn", "jukebox.main:app", "--host", "0.0.0.0", "--port", "8000"]
environment:
DATABASE_URL: postgres://postgres:admin123@database:5432/jukebox
Expand Down Expand Up @@ -31,8 +30,7 @@ services:
restart: on-failure

scheduler:
build:
context: .
image: jukebox
command: [ "python", "jukebox/scheduler.py" ]
environment:
DATABASE_URL: postgres://postgres:admin123@database:5432/jukebox
Expand All @@ -46,8 +44,7 @@ services:
restart: on-failure

migrate:
build:
context: .
image: jukebox
command: ["python", "jukebox/database/migrations.py"]
environment:
DATABASE_URL: postgres://postgres:admin123@database:5432/jukebox
Expand Down
3 changes: 3 additions & 0 deletions misc/nginx/compose.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ server {
listen [::]:8000;
server_name localhost;

access_log /etc/nginx/access.log;
error_log /etc/nginx/error.log;

location / {
proxy_pass http://webapp:8000;
}
Expand Down

0 comments on commit ff263c3

Please sign in to comment.