You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
643 B

  1. version: "3.3"
  2. volumes:
  3. dummy:
  4. services:
  5. pipenv: &pipenv
  6. image: "kennethreitz/pipenv"
  7. working_dir: "/app"
  8. volumes:
  9. - ".:/app"
  10. - "dummy:/app/.venv"
  11. db: &db
  12. container_name: "sql_test_db"
  13. image: "mdillon/postgis:11"
  14. volumes:
  15. - "./sql:/sql"
  16. env_file:
  17. - "env/local/.env"
  18. ports:
  19. - "5438:5432"
  20. testdb:
  21. <<: *db
  22. container_name: "testdb"
  23. restart: "always"
  24. env_file:
  25. - "env/test/.env"
  26. ports:
  27. - "5432"
  28. dbtest:
  29. <<: *pipenv
  30. command: ["bash", "-c", "pipenv install --dev --deploy --system && pytest -s -vvv"]
  31. depends_on:
  32. - testdb