From acf953439f8be27dcb07da7b1f8d26286196bd47 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Sat, 30 Mar 2024 14:15:44 -0400 Subject: [PATCH] Tweaking things... --- .../site-enabled_aether_fastapi_gunicorn.conf | 2 +- docker-compose.yml | 64 +++++++++---------- 2 files changed, 33 insertions(+), 33 deletions(-) diff --git a/conf/nginx/site-enabled_aether_fastapi_gunicorn.conf b/conf/nginx/site-enabled_aether_fastapi_gunicorn.conf index 54ac60c..def93c3 100644 --- a/conf/nginx/site-enabled_aether_fastapi_gunicorn.conf +++ b/conf/nginx/site-enabled_aether_fastapi_gunicorn.conf @@ -167,7 +167,7 @@ upstream fastapi_backend { server aether_api_gunicorn_red:5005 weight=20 max_fails=2 fail_timeout=30s; server aether_api_gunicorn_green:5005 weight=20 max_fails=2 fail_timeout=30s; server aether_api_gunicorn_blue:5005 weight=20 max_fails=2 fail_timeout=30s; - server aether_api_gunicorn_black:5005 weight=20 max_fails=2 fail_timeout=30s; + # server aether_api_gunicorn_black:5005 weight=20 max_fails=2 fail_timeout=30s; # server aether_api_gunicorn_white:5005 weight=20 max_fails=2 fail_timeout=30s; # maintain up to 20 idle connections to the group of upstream servers diff --git a/docker-compose.yml b/docker-compose.yml index 80e3c01..7943463 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -305,41 +305,41 @@ services: tty: true # docker run -t # API - Black - aether_api_gunicorn_black: - restart: always - container_name: ${CONTAINER_AE_API_BLACK} - build: - # context: ./builds - context: ./ - dockerfile: aether_fastapi_gunicorn.Dockerfile - env_file: - - ./.env - ports: - - "${AE_API_GUNICORN_PORT_BLACK}:5005" - extra_hosts: - - "${DOCKER_AE_SERVER_EXTRA_HOST}" - - "${DOCKER_AE_APP_SERVER_EXTRA_HOST}" - - "${DOCKER_AE_API_SERVER_EXTRA_HOST}" - - "${DOCKER_AE_API_BAK_SERVER_EXTRA_HOST}" - - "${DOCKER_AE_DB_SERVER_EXTRA_HOST}" - - "linode.oneskyit.com:104.237.143.4" - # - "db.oneskyit.com:104.237.143.4" - volumes: - - ./conf/aether_fastapi_gunicorn_conf.py:/conf/gunicorn_fastapi_conf.py - - ./conf/aether_fastapi_requirements_current.txt:/requirements_current.txt - - ./conf/aether_api_config.py:/srv/aether_api/app/config.py + # aether_api_gunicorn_black: + # restart: always + # container_name: ${CONTAINER_AE_API_BLACK} + # build: + # # context: ./builds + # context: ./ + # dockerfile: aether_fastapi_gunicorn.Dockerfile + # env_file: + # - ./.env + # ports: + # - "${AE_API_GUNICORN_PORT_BLACK}:5005" + # extra_hosts: + # - "${DOCKER_AE_SERVER_EXTRA_HOST}" + # - "${DOCKER_AE_APP_SERVER_EXTRA_HOST}" + # - "${DOCKER_AE_API_SERVER_EXTRA_HOST}" + # - "${DOCKER_AE_API_BAK_SERVER_EXTRA_HOST}" + # - "${DOCKER_AE_DB_SERVER_EXTRA_HOST}" + # - "linode.oneskyit.com:104.237.143.4" + # # - "db.oneskyit.com:104.237.143.4" + # volumes: + # - ./conf/aether_fastapi_gunicorn_conf.py:/conf/gunicorn_fastapi_conf.py + # - ./conf/aether_fastapi_requirements_current.txt:/requirements_current.txt + # - ./conf/aether_api_config.py:/srv/aether_api/app/config.py - - ./logs/ae_api:/logs + # - ./logs/ae_api:/logs - - ./srv/aether_api_ln:/srv/aether_api - - ./srv/hosted_files_ln:/srv/hosted_files - - ./srv/hosted_tmp_ln:/srv/hosted_tmp + # - ./srv/aether_api_ln:/srv/aether_api + # - ./srv/hosted_files_ln:/srv/hosted_files + # - ./srv/hosted_tmp_ln:/srv/hosted_tmp - - ./temp/ae_api:/temp - depends_on: - - redis - stdin_open: true - tty: true + # - ./temp/ae_api:/temp + # depends_on: + # - redis + # stdin_open: true + # tty: true # API - White # aether_api_gunicorn_white: