Skip to content

Commit

Permalink
Use tox-docker to run services when testing
Browse files Browse the repository at this point in the history
  • Loading branch information
sajith committed Mar 5, 2024
1 parent b8e5f22 commit f404b40
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,23 @@ passenv =
PUB_*
DB_*
MONGODB_CONNSTRING

docker =
rabbitmq
mongo

[docker:rabbitmq]
image = rabbitmq:latest

ports =
5672:5672/tcp

[docker:mongo]
image = mongo:7.0.5

ports =
27017:27017/tcp

environment =
MONGO_INITDB_ROOT_USERNAME=guest
MONGO_INITDB_ROOT_PASSWORD=guest

0 comments on commit f404b40

Please sign in to comment.