diff --git a/conf/nginx/site-enabled_aether_fastapi_gunicorn.conf b/conf/nginx/site-enabled_aether_fastapi_gunicorn.conf index def93c3..3b716d8 100644 --- a/conf/nginx/site-enabled_aether_fastapi_gunicorn.conf +++ b/conf/nginx/site-enabled_aether_fastapi_gunicorn.conf @@ -71,7 +71,7 @@ server { server { listen 443 ssl; listen [::]:443 ssl; - # http2 on; + http2 on; server_name ${DOCKER_AE_API_SERVER_NAME} @@ -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 7943463..80e3c01 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: