Skip to content

Instantly share code, notes, and snippets.

@veekaybee
Created August 1, 2023 00:00
Show Gist options
  • Save veekaybee/c661b50e364e4f6d1dc283a57eb6a6d9 to your computer and use it in GitHub Desktop.
Save veekaybee/c661b50e364e4f6d1dc283a57eb6a6d9 to your computer and use it in GitHub Desktop.
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