-
Notifications
You must be signed in to change notification settings - Fork 864
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docker-compose file to spin up databases under Docker
- Loading branch information
Showing
3 changed files
with
33 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# shellcheck shell=bash | ||
export MYSQL_HOST=127.0.0.1 | ||
export MYSQL_PORT=3307 | ||
|
||
export POSTGRES_HOST=localhost | ||
export POSTGRES_PORT=5433 | ||
export POSTGRES_USER=postgres | ||
export POSTGRES_PASSWORD=postgres | ||
|
||
export MONGODB_HOST=localhost | ||
export MONGODB_PORT=27018 |
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,3 +1,3 @@ | ||
brew 'mongodb/brew/[email protected]', restart_service: true | ||
# brew 'mongodb/brew/[email protected]', restart_service: true | ||
brew '[email protected]', restart_service: true | ||
brew 'postgresql', restart_service: true |
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,21 @@ | ||
--- | ||
version: '2.1' | ||
services: | ||
mysql: | ||
image: mysql:5.7 | ||
environment: | ||
- MYSQL_DATABASE=will_paginate | ||
- MYSQL_ALLOW_EMPTY_PASSWORD=true | ||
ports: | ||
- 3307:3306 | ||
postgres: | ||
image: postgres:11 | ||
environment: | ||
- POSTGRES_DB=will_paginate | ||
- POSTGRES_PASSWORD=postgres | ||
ports: | ||
- 5433:5432 | ||
mongodb: | ||
image: mongo:4.2 | ||
ports: | ||
- 27018:27017 |