-
-
Save veekaybee/c661b50e364e4f6d1dc283a57eb6a6d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.8" | |
services: | |
redis: | |
image: redis/redis-stack-server:latest | |
volumes: | |
- redis-data:/data | |
container_name: redis | |
command: redis-server --port 6379 --appendonly yes --protected-mode no --loadmodule /opt/redis-stack/lib/redisearch.so --loadmodule /opt/redis-stack/lib/rejson.so | |
platform: linux/amd64 | |
web: | |
container_name: viberary | |
build: | |
context: . | |
dockerfile: docker/prod/Dockerfile | |
ports: | |
- '8000:8000' | |
volumes: | |
- ./:/viberary | |
- ./viberary/src/training_data:/training_data | |
- /mnt/viberary:/viberary/logs | |
environment: | |
- REDIS_HOST=redis | |
depends_on: | |
- redis | |
platform: linux/amd64 | |
command: gunicorn -b 0.0.0.0:8000 -w 4 src.api.wsgi:app -t 900 | |
volumes: | |
redis-data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment