-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates docker-compose.test.yml to a modern compose file version.
- Loading branch information
1 parent
65af142
commit ac6e049
Showing
1 changed file
with
27 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |