diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 3df0f7d8..f8c7fae0 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -34,13 +34,7 @@ services: - "./entity-api/nginx/conf.d:/etc/nginx/conf.d" networks: - gateway_hubmap - # Send docker logs to AWS CloudWatch - logging: - driver: awslogs - options: - awslogs-region: us-east-1 - awslogs-group: entity-api-docker-logs - awslogs-stream: ${LOG_STREAM} + networks: # This is the network created by gateway to enable communicaton between multiple docker-compose projects diff --git a/docker/example.env b/docker/example.env deleted file mode 100644 index b19e3e04..00000000 --- a/docker/example.env +++ /dev/null @@ -1 +0,0 @@ -LOG_STREAM=DEV diff --git a/src/uwsgi.ini b/src/uwsgi.ini index f97e2c9e..d422a13f 100644 --- a/src/uwsgi.ini +++ b/src/uwsgi.ini @@ -5,9 +5,9 @@ chdir = /usr/src/app/src # Application's callbale module = wsgi:application -# Delegate the logging to the master process -# Send logs to stdout instead of file so docker picks it up and writes to AWS CloudWatch +# Centralize logging through the master process log-master=true +logto = /usr/src/app/log/uwsgi-entity-api.log # Master with 12 worker processes (based on CPU number) master = true @@ -40,4 +40,4 @@ stats = localhost:9191 # Makes the stats server accessible via HTTP rather than a raw socket, # allowing standard tools like curl to query it -stats-http = true \ No newline at end of file +stats-http = true