-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
da173be
commit 3051822
Showing
8 changed files
with
110 additions
and
3 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
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 @@ | ||
.git | ||
.gitignore | ||
README.md | ||
docker-compose.yml | ||
node_modules |
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,16 @@ | ||
FROM node:8-slim | ||
|
||
RUN mkdir /app | ||
|
||
RUN npm install nodemon -g | ||
|
||
WORKDIR /app | ||
COPY . . | ||
#ADD . . | ||
|
||
RUN npm install | ||
|
||
|
||
EXPOSE 3000 | ||
|
||
CMD npm start |
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,6 @@ | ||
{ | ||
"env": { | ||
"NODE_ENV": "development" | ||
}, | ||
"ext": "js json hjs" | ||
} |
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,61 @@ | ||
version: '3' | ||
services: | ||
nginx: | ||
container_name: focusblock-nginx | ||
image: nginx:latest | ||
#restart: always | ||
ports: | ||
- "80:80" | ||
volumes: | ||
- ./Nginx/conf.d:/etc/nginx/conf.d | ||
links: | ||
- frontend | ||
depends_on: | ||
- frontend | ||
|
||
mongodb: | ||
container_name: focusblock-mongodb | ||
image: mongo:latest | ||
command: mongod --storageEngine=wiredTiger | ||
ports: | ||
- "27017:27017" | ||
volumes: | ||
- ./MongoDB:/data/db | ||
|
||
backend: | ||
container_name: focusblock-backend | ||
build: ./Server | ||
restart: on-failure | ||
environment: | ||
BASE_PATH: localhostxs | ||
DB_HOST: mongodb:27017 | ||
DB_NAME: focusblock | ||
PORT: 3000 | ||
#volumes: | ||
# - ./Server:/app | ||
ports: | ||
- "3000:3000" | ||
links: | ||
- mongodb | ||
depends_on: | ||
- mongodb | ||
|
||
frontend: | ||
container_name: focusblock-frontend | ||
build: "./focus-block" | ||
environment: | ||
#SMTP Username for SMTPJS (From Sengrid) | ||
REACT_APP_SMTP_USERNAME: CHANGE_ME | ||
#SMTP Password for SMTPJS (From Sengrid) | ||
REACT_APP_SMTP_PW: CHANGE_ME_TOO | ||
#The route for your Node Server (ex. http://localhost:8000) | ||
REACT_APP_API_BASE: http://backend:3000 | ||
PORT: 8080 | ||
#volumes: | ||
# - ./focus-block:/app | ||
ports: | ||
- "8080:8080" | ||
links: | ||
- backend | ||
depends_on: | ||
- backend |
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 @@ | ||
.git | ||
../Server/.gitignore | ||
README.md | ||
docker-compose.yml | ||
node_modules |
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,13 @@ | ||
FROM node:8-slim | ||
|
||
RUN mkdir /app | ||
RUN npm install npm-run-all -g | ||
|
||
WORKDIR /app | ||
COPY . . | ||
#ADD . . | ||
RUN npm install | ||
|
||
EXPOSE 8080 | ||
|
||
CMD npm start |