Ensure postgres is available for production
This commit is contained in:
Родитель
c05a650ae2
Коммит
97af1ed317
|
@ -49,7 +49,9 @@ setup(
|
|||
'flask_sqlalchemy',
|
||||
'flask_marshmallow',
|
||||
'marshmallow-sqlalchemy',
|
||||
"docker"
|
||||
"docker",
|
||||
'psycopg2',
|
||||
''
|
||||
],
|
||||
|
||||
extras_require={
|
||||
|
|
|
@ -5,6 +5,13 @@ services:
|
|||
restart: always
|
||||
environment:
|
||||
POSTGRES_USER: seattle_flu
|
||||
# placeholder for building worker
|
||||
workers:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.worker
|
||||
image: idm-docker-production.packages.idmod.org/sfim-worker:${version:-latest}
|
||||
command: touch t
|
||||
service:
|
||||
build:
|
||||
context: api_service
|
||||
|
@ -13,7 +20,7 @@ services:
|
|||
volumes:
|
||||
- "/model_store:/model_store"
|
||||
environment:
|
||||
- SQLALCHEMY_URI=postgres://seattle_flu:@db
|
||||
- SQLALCHEMY_URI=postgres+psycopg2://seattle_flu:@db
|
||||
depends_on:
|
||||
- db
|
||||
ports:
|
||||
|
|
Загрузка…
Ссылка в новой задаче