docker-compose.yml 733 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. version: "2"
  2. volumes:
  3. data:
  4. services:
  5. test_acceptance:
  6. image: node:6.9.5
  7. volumes:
  8. - .:/app:ro
  9. - data:/app/data:rw
  10. working_dir: /app
  11. environment:
  12. REDIS_HOST: redis
  13. MONGO_URL: "mongodb://mongo/sharelatex"
  14. SHARELATEX_ALLOW_PUBLIC_ACCESS: 'true'
  15. PROJECT_HISTORY_ENABLED: 'true'
  16. ENABLED_LINKED_FILE_TYPES: 'url'
  17. LINKED_URL_PROXY: 'http://localhost:6543'
  18. depends_on:
  19. - redis
  20. - mongo
  21. command: node app.js
  22. test_frontend:
  23. build:
  24. context: .
  25. dockerfile: Dockerfile.frontend
  26. volumes:
  27. - .:/app
  28. working_dir: /app
  29. command: npm run test:frontend -- --single-run
  30. redis:
  31. image: redis
  32. mongo:
  33. image: mongo:3.4.6