version: '3'
|
|
|
|
services:
|
|
web:
|
|
build: ./backend
|
|
image: master-image
|
|
environment:
|
|
- TRANSFORMERS_CACHE=/app/.cache
|
|
ports:
|
|
- 5000:5000
|
|
command: /usr/local/bin/gunicorn -b :5000 main:app
|
|
volumes:
|
|
- ./dump/backend:/data
|
|
depends_on:
|
|
- redis
|
|
- typesense
|
|
|
|
rq-worker:
|
|
image: master-image
|
|
depends_on:
|
|
- redis
|
|
command: rq worker -u redis://redis:6379 discover download
|
|
volumes:
|
|
- ./dump/backend:/data
|
|
deploy:
|
|
replicas: 2
|
|
|
|
redis:
|
|
image: redis:alpine
|
|
ports:
|
|
- 6379:6379
|
|
|
|
typesense:
|
|
image: typesense/typesense:0.24.1
|
|
environment:
|
|
TYPESENSE_DATA_DIR: /data
|
|
TYPESENSE_API_KEY: jVkJyIqRRJbn5EqzdPQRcSzCurI5V7mt
|
|
TYPESENSE_SEARCH_ONLY_API_KEY: Q918wGcKZoy81tl45QvBacaHXQAIdciq
|
|
volumes:
|
|
- ./dump/typesense:/data
|
|
ports:
|
|
- 8108:8108
|