27 lines
693 B
YAML
27 lines
693 B
YAML
|
services:
|
||
|
|
||
|
decision-maker:
|
||
|
build: ./
|
||
|
container_name: spam-detector-decision-maker
|
||
|
environment:
|
||
|
- PORT=${PORT:-8080}
|
||
|
entrypoint: [ "python", "-m", "src.app", "-m" ]
|
||
|
volumes:
|
||
|
- type: bind
|
||
|
source: $DATASET
|
||
|
target: /app/dataset.csv
|
||
|
- ${MODELS_DIR}:/app/models
|
||
|
|
||
|
model-updater:
|
||
|
build: ./
|
||
|
container_name: spam-detector-model-updater
|
||
|
environment:
|
||
|
- NONE=1
|
||
|
# entrypoint: [ "python", "-m", "src.app", "-u", "-d", "/app/dataset.csv" ]
|
||
|
entrypoint: [ "bash", "-c", "while true; do sleep 1; done" ]
|
||
|
volumes:
|
||
|
- type: bind
|
||
|
source: $DATASET
|
||
|
target: /app/dataset.csv
|
||
|
- ${MODELS_DIR}:/app/models/
|