Skip to content

Commit

Permalink
Updates docker-compose.test.yml to a modern compose file version.
Browse files Browse the repository at this point in the history
  • Loading branch information
toomuchpete committed Sep 10, 2024
1 parent 65af142 commit ac6e049
Showing 1 changed file with 27 additions and 21 deletions.
48 changes: 27 additions & 21 deletions docker-compose.test.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
{
"mongodb": {"image": "mongo:4"},
"redis": {"image": "redis"},
"memcached": {"image": "memcached"},
"mailhog": {
"image": "mailhog/mailhog",
"ports": ["8025:8025"]
},
"sut": {
"build": ".",
"ports": ["3000:3000"],
"links": ["mongodb", "redis", "memcached", "mailhog"],
"command": ["bundle", "exec", "rspec", "--color", "spec", "--format", "progress"],
"environment": {
"REDIS_URL": "redis://redis:6379",
"MONGO_HOST": "mongodb",
"RAILS_ENV": "test",
"RACK_ENV": "test"
}
}
}
version: '3'
services:
mongodb:
image: mongo:4
redis:
image: redis
memcached:
image: memcached
mailhog:
image: mailhog/mailhog
ports:
- 8025:8025
sut:
build: .
ports:
- 3000:3000
depends_on:
- mongodb
- redis
- memcached
- mailhog
command: bundle exec rspec --color spec --format progress
environment:
- REDIS_URL=redis://redis:6379
- MONGO_HOST=mongodb
- RAILS_ENV=test
- RACK_ENV=test

0 comments on commit ac6e049

Please sign in to comment.