-
Notifications
You must be signed in to change notification settings - Fork 0
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
fce4974
commit 55e3bc2
Showing
11 changed files
with
109 additions
and
4,645 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
**/.classpath | ||
**/.dockerignore | ||
**/.env | ||
**/.git | ||
**/.gitignore | ||
**/.project | ||
**/.settings | ||
**/.toolstarget | ||
**/.vs | ||
**/.vscode | ||
**/*.*proj.user | ||
**/*.dbmdl | ||
**/*.jfm | ||
**/charts | ||
**/docker-compose* | ||
**/compose* | ||
**/Dockerfile* | ||
**/node_modules | ||
**/npm-debug.log | ||
**/obj | ||
**/secrets.dev.yaml | ||
**/values.dev.yaml | ||
LICENSE | ||
README.md |
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,2 +1,7 @@ | ||
node_modules | ||
.env | ||
.env | ||
data/ | ||
.vscode/ | ||
yarn-error.log | ||
yarn.lock | ||
package-lock.json |
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,10 @@ | ||
FROM node:lts-alpine | ||
ENV NODE_ENV=production | ||
WORKDIR /usr/src/app | ||
COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"] | ||
RUN npm install --production --silent && mv node_modules ../ | ||
COPY . . | ||
EXPOSE 3000 | ||
RUN chown -R node /usr/src/app | ||
USER node | ||
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,47 @@ | ||
version: '3' | ||
|
||
services: | ||
doneify: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
container_name: doneify_cunt | ||
volumes: | ||
- ./app:/app | ||
ports: | ||
- 3000:3000 | ||
environment: | ||
- PORT=${PORT} | ||
- JWT_SECRET=${JWT_SECRET} | ||
- MONGO_ROOT_USER=${MONGO_ROOT_USER} | ||
- MONGO_ROOT_PASSWORD=${MONGO_ROOT_PASSWORD} | ||
- SERVER_URL=${SERVER_URL} | ||
depends_on: | ||
- mongo | ||
|
||
mongo: | ||
image: mongo | ||
container_name: mongo_db | ||
environment: | ||
- MONGO_INITDB_ROOT_USERNAME=${MONGO_ROOT_USER} | ||
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_ROOT_PASSWORD} | ||
- MONGO_INITDB_DATABASE=project | ||
ports: | ||
- 27017:27017 | ||
|
||
mongo-express: | ||
image: mongo-express | ||
container_name: mongo_web_gui | ||
environment: | ||
- ME_CONFIG_MONGODB_SERVER=mongo | ||
- ME_CONFIG_MONGODB_PORT=27017 | ||
- ME_CONFIG_MONGODB_ENABLE_ADMIN=false | ||
- ME_CONFIG_MONGODB_AUTH_DATABASE=admin | ||
- ME_CONFIG_MONGODB_AUTH_USERNAME=${MONGO_ROOT_USER} | ||
- ME_CONFIG_MONGODB_AUTH_PASSWORD=${MONGO_ROOT_PASSWORD} | ||
- ME_CONFIG_BASICAUTH_USERNAME=${MONGOEXPRESS_LOGIN} | ||
- ME_CONFIG_BASICAUTH_PASSWORD=${MONGOEXPRESS_PASSWORD} | ||
depends_on: | ||
- mongo | ||
ports: | ||
- "8888:8081" |
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,5 @@ | ||
setting up docker worked | ||
look into whether its important to use volums for persistent mongo db data storage | ||
push docker build on dockerhub | ||
|
||
[auth tut](https://codevoweb.com/node-typescript-mongodb-jwt-authentication/) |
Oops, something went wrong.