rdbms.yml 777 B

12345678910111213141516171819202122232425262728293031323334353637
  1. version: '3'
  2. services:
  3. postgres:
  4. image: postgres:latest
  5. environment:
  6. - POSTGRES_HOST=postgres
  7. - POSTGRES_USER=user
  8. - POSTGRES_PASSWORD=pswd
  9. - POSTGRES_DB=django_cqrs
  10. - POSTGRES_HOST_AUTH_METHOD=md5
  11. - POSTGRES_INITDB_ARGS=--auth-host=md5
  12. mysql:
  13. image: mysql:8.0
  14. environment:
  15. MYSQL_ROOT_PASSWORD: password
  16. MYSQL_DATABASE: django_cqrs
  17. app_test:
  18. build:
  19. context: ..
  20. dockerfile: integration_tests/Dockerfile
  21. volumes:
  22. - ../:/app
  23. environment:
  24. DB: ${DB-}
  25. depends_on:
  26. - postgres
  27. - mysql
  28. command: >
  29. bash -c '
  30. dockerize -wait tcp://postgres:5432 -timeout 50s &&
  31. dockerize -wait tcp://mysql:3306 -timeout 50s &&
  32. pytest -v
  33. '