docker-compose.yml 685 B

1234567891011121314151617181920212223242526272829
  1. version: "3.7"
  2. services:
  3. aphrodite-engine:
  4. #build:
  5. # context: .
  6. container_name: aphrodite-engine
  7. deploy:
  8. resources:
  9. reservations:
  10. devices:
  11. - capabilities: [gpu]
  12. count: all
  13. driver: nvidia
  14. env_file: .env
  15. hostname: aphrodite-engine
  16. image: alpindale/aphrodite-engine
  17. ipc: host
  18. ports:
  19. - "${PORT:-7860}:7860"
  20. restart: on-failure:5
  21. user: "${UID:-1000}:${GID:-0}"
  22. volumes:
  23. - ${HF_CACHE:-hf-cache}:/tmp
  24. - ${SSL_CERTFILE:-/dev/null}:/app/aphrodite-engine/server.crt:ro
  25. - ${SSL_KEYFILE:-/dev/null}:/app/aphrodite-engine/server.key:ro
  26. volumes:
  27. hf-cache: