2019-03-18 23:43:28 +03:00
|
|
|
version: '3'
|
|
|
|
services:
|
2019-05-03 23:37:37 +03:00
|
|
|
db:
|
|
|
|
image: postgres
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: seattle_flu
|
2019-05-09 23:24:32 +03:00
|
|
|
# placeholder for building worker
|
|
|
|
workers:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile.worker
|
|
|
|
image: idm-docker-production.packages.idmod.org/sfim-worker:${version:-latest}
|
|
|
|
command: touch t
|
2019-03-18 23:43:28 +03:00
|
|
|
service:
|
|
|
|
build:
|
|
|
|
context: api_service
|
|
|
|
dockerfile: Dockerfile
|
2019-05-07 23:37:47 +03:00
|
|
|
image: idm-docker-production.packages.idmod.org/sfim-api:${version:-latest}
|
2019-05-03 23:49:12 +03:00
|
|
|
volumes:
|
|
|
|
- "/model_store:/model_store"
|
2019-05-09 23:34:53 +03:00
|
|
|
# pass docker so we can execute other containers
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
2019-03-18 23:43:28 +03:00
|
|
|
environment:
|
2019-05-09 23:24:32 +03:00
|
|
|
- SQLALCHEMY_URI=postgres+psycopg2://seattle_flu:@db
|
2019-05-09 23:34:53 +03:00
|
|
|
- "CREATE_DB=1"
|
|
|
|
#- "MODEL_HOST_PATH=`pwd`/test_model_store"
|
|
|
|
#- "DEBUG_TOKENS=1"
|
2019-03-18 23:43:28 +03:00
|
|
|
depends_on:
|
2019-05-03 23:37:37 +03:00
|
|
|
- db
|
2019-03-18 23:43:28 +03:00
|
|
|
ports:
|
|
|
|
- "80:5000"
|