-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #199 from mcarmonaa/improvement/add-docker-compose…
…-file *: Add docker-compose file to make easier run rovers and update the README
- Loading branch information
Showing
2 changed files
with
47 additions
and
20 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
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
version: '3' | ||
|
||
services: | ||
|
||
rovers: | ||
image: srcd/rovers:latest | ||
container_name: rovers | ||
environment: | ||
- CONFIG_GITHUB_TOKEN=${CONFIG_GITHUB_TOKEN:-unknown_api_key} | ||
- CONFIG_BING_KEY=${CONFIG_BING_TOKEN:-unknown_api_key} | ||
- CONFIG_BROKER_URL=amqp://guest:guest@rovers-rabbitmq:5672 | ||
- CONFIG_DBHOST=rovers-postgres | ||
depends_on: | ||
- rovers-postgres | ||
- rovers-rabbitmq | ||
command: /bin/sh -c "rovers initdb; rovers repos" | ||
|
||
rovers-postgres: | ||
image: postgres:10.5-alpine | ||
container_name: rovers-postrgres | ||
ports: | ||
- "5432:5432" | ||
environment: | ||
- POSTGRES_DB=testing | ||
- POSTGRES_USER=testing | ||
- POSTGRES_PASSWORD=testing | ||
|
||
rovers-rabbitmq: | ||
image: rabbitmq:3.7.7-management-alpine | ||
container_name: rovers-rabbitmq | ||
ports: | ||
- "5672:5672" | ||
- "15672:15672" |