docker-compose.test.yml 857 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. version: '3.8'
  2. services:
  3. api:
  4. build: ./api
  5. entrypoint: ./runservice.dev.sh
  6. command: run
  7. ports:
  8. - "8000:5000"
  9. environment:
  10. - BAANGT_DATAFILE_HOST=172.17.0.1:5050
  11. - REDIS_URL=redis://172.17.0.1:6380
  12. - FLASK_APP=app.py
  13. - FLASK_DEBUG=1
  14. - FLASK_RUN_HOST=0.0.0.0
  15. - FLASK_RUN_PORT=5000
  16. depends_on:
  17. - rd
  18. - rq
  19. datafiles:
  20. build: ./files
  21. entrypoint: ./runservice.dev.sh
  22. ports:
  23. - "5050:5000"
  24. environment:
  25. - FLASK_APP=app.py
  26. - FLASK_DEBUG=1
  27. - FLASK_RUN_HOST=0.0.0.0
  28. - FLASK_RUN_PORT=5000
  29. rq:
  30. build: ./api
  31. entrypoint: ./runservice.rq.sh
  32. environment:
  33. - BAANGT_DATAFILE_HOST=172.17.0.1:5050
  34. - REDIS_URL=redis://172.17.0.1:6380
  35. depends_on:
  36. - rd
  37. rd:
  38. image: redis:5-alpine
  39. ports:
  40. - "6380:6379"