This repository has been archived by the owner on May 23, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VP-12 docker compose files for production
various docker compose files for different environments - ECS version uses mongo in the cloud - not creds are in clear and need fixing
- Loading branch information
Showing
11 changed files
with
65 additions
and
5 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 |
---|---|---|
|
@@ -9,3 +9,5 @@ dist | |
coverage/ | ||
.nyc_output/ | ||
yarn.lock | ||
.ssh | ||
*.pem |
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,5 @@ | ||
$(aws ecr get-login --no-include-email --region ap-southeast-1) | ||
docker build -t vly1-main-repo . | ||
docker tag vly1-main-repo:latest 585172581592.dkr.ecr.ap-southeast-1.amazonaws.com/vly1-main-repo:latest | ||
docker push 585172581592.dkr.ecr.ap-southeast-1.amazonaws.com/vly1-main-repo:latest | ||
|
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
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,12 @@ | ||
version: '3' | ||
services: | ||
web: | ||
image: 585172581592.dkr.ecr.ap-southeast-1.amazonaws.com/vly1-main-repo:latest | ||
depends_on: | ||
- db | ||
ports: | ||
- "${WEB_PORT:-80}:8000" | ||
environment: | ||
NODE_ENV: production | ||
MONGO_URL: mongodb+srv://vly-client:[email protected]/test?retryWrites=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,19 @@ | ||
version: '3' | ||
services: | ||
web: | ||
image: 585172581592.dkr.ecr.ap-southeast-1.amazonaws.com/vly1-main-repo:latest | ||
depends_on: | ||
- db | ||
ports: | ||
- "${WEB_PORT:-80}:8000" | ||
environment: | ||
NODE_ENV: development | ||
MONGO_URL: mongodb://db:27017/vly1 | ||
db: | ||
image: mongo:latest | ||
ports: | ||
- "27017:27017" | ||
volumes: | ||
- dbdata:/data/db | ||
volumes: | ||
dbdata: |
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,19 @@ | ||
version: '3' | ||
services: | ||
web: | ||
image: 585172581592.dkr.ecr.ap-southeast-1.amazonaws.com/vly1-main-repo:latest | ||
depends_on: | ||
- db | ||
ports: | ||
- "${WEB_PORT:-80}:8000" | ||
environment: | ||
NODE_ENV: production | ||
MONGO_URL: mongodb+srv://vly-client:[email protected]/test?retryWrites=true | ||
db: | ||
image: mongo:latest | ||
ports: | ||
- "27017:27017" | ||
volumes: | ||
- dbdata:/data/db | ||
volumes: | ||
dbdata: |
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,4 +1,4 @@ | ||
version: '3.4' | ||
version: '3' | ||
services: | ||
web: | ||
build: | ||
|
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,5 +1,6 @@ | ||
const config = { | ||
mongoURL: process.env.MONGO_URL || 'mongodb://localhost:27017/vly1', | ||
mongoURL: process.env.MONGO_URL || 'mongodb+srv://vly-client:[email protected]/test?retryWrites=true', | ||
// 'mongodb://localhost:27017/vly1', | ||
port: process.env.PORT || 8000, | ||
}; | ||
|
||
|
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