db updates

This commit is contained in:
Egor Matveev 2021-11-06 00:04:48 +03:00
parent 522c465972
commit c92bcd13f9
3 changed files with 4 additions and 1 deletions

View File

@ -5,6 +5,7 @@ stages:
variables:
SOLUTIONS_ROOT_EXTERNAL: "/sprint-data/data/solutions"
DB_HOST: "postgres"
before_script:
- echo "Starting..."

View File

@ -83,7 +83,7 @@ DATABASES = {
"NAME": "sprint",
"USER": "postgres",
"PASSWORD": "password",
"HOST": "postgres",
"HOST": os.getenv("DB_HOST", "0.0.0.0"),
"PORT": 5432,
}
}

View File

@ -22,6 +22,7 @@ services:
restart: always
environment:
PORT: $PORT
DB_HOST: $DB_HOST
command: scripts/runserver.sh
ports:
- "${PORT}:${PORT}"
@ -55,6 +56,7 @@ services:
command: scripts/create_worker.sh
environment:
SOLUTIONS_ROOT_EXTERNAL: "${SOLUTIONS_ROOT_EXTERNAL}"
DB_HOST: "${DB_HOST}"
depends_on:
- web
- rabbitmq