Tweaking things...
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user