rabbit host

This commit is contained in:
Egor Matveev 2021-11-07 10:37:25 +03:00
parent e259d2d146
commit 0bc2592bf7
2 changed files with 8 additions and 1 deletions

View File

@ -6,6 +6,7 @@ stages:
variables:
SOLUTIONS_ROOT_EXTERNAL: "/sprint-data/data/solutions"
DB_HOST: "postgres"
RABBIT_HOST: "rabbitmq"
build:
stage: build
@ -34,6 +35,9 @@ deploy-dev:
- when: manual
variables:
PORT: 80
SOLUTIONS_ROOT_EXTERNAL: "/sprint-data/data/solutions"
DB_HOST: "postgres"
RABBIT_HOST: "rabbitmq"
deploy-prod:
extends:
@ -46,3 +50,6 @@ deploy-prod:
when: manual
variables:
PORT: 443
SOLUTIONS_ROOT_EXTERNAL: "/sprint-data/data/solutions"
DB_HOST: "postgres"
RABBIT_HOST: "rabbitmq"

View File

@ -140,7 +140,7 @@ for root in DATA_ROOT, EXTRA_FILES_ROOT, MEDIA_ROOT:
SOLUTIONS_ROOT = os.path.join(DATA_ROOT, "solutions")
RABBIT_HOST = "rabbitmq"
RABBIT_HOST = os.getenv("RABBIT_HOST", "0.0.0.0")
RABBIT_PORT = 5672
STATICFILES_DIRS = [