Skip to content

Instantly share code, notes, and snippets.

@ajeetraina
Created February 22, 2022 05:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajeetraina/aaa9143706b6751d7d8635a1610b4478 to your computer and use it in GitHub Desktop.
Save ajeetraina/aaa9143706b6751d7d8635a1610b4478 to your computer and use it in GitHub Desktop.
Docker Compose File for Movify
version: '3.7'
services:
nginx:
  image: nginx:1.17
  volumes:
     - ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
  ports:
    - 8000:80
  depends_on:
    - backend
    - frontend
redis:
  image: redislabs/redismod:latest
  command: --loadmodule /usr/lib/redis/modules/redisearch.so --loadmodule /usr/lib/redis/modules/redisgraph.so --loadmodule       
           /usr/lib/redis/modules/rejson.so --dir /data
  # ports:
    # - 6379:6379
  volumes:
     - ./redis-data:/data
frontend:
  image: redis21_frontend
  volumes:
     - ./frontend:/app
backend:
  image: redis21_backend
  entrypoint: uvicorn main:app --host 0.0.0.0 --port 8000 --root-path /api --reload
  depends_on:
    - redis
  environment:
    - HOST=http://127.0.0.1:8000
  volumes:
     - ./backend:/app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment