Skip to content

Commit

Permalink
Add mongodb config
Browse files Browse the repository at this point in the history
  • Loading branch information
fabien-roy committed May 8, 2022
1 parent 7e68870 commit c46ff17
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .env.local
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@

NODE_ENV=development
PORT=8000
# TODO: Find MongoDB URI (Docker)
MONGODB_URI=YOUR_MONGODB_URI
MONGODB_URI=http://localhost:27017
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ module.exports = {
// TODO: Yeah, Nuxt3 is cool, but should we really do this?
'no-undef': 'off',
},
ignorePatterns: ['generated/*'],
ignorePatterns: ['generated/*', 'data/db/*'],
};
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ node_modules
.output
.env
.idea
data/db
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
generated/**
data/db/**
14 changes: 14 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: "3.8"

services:
mongodb:
image: mongo
container_name: mongodb
environment:
- PUID=1000
- PGID=1000
volumes:
- ./data/db:/data/db
ports:
- 27017:27017
restart: unless-stopped
1 change: 1 addition & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ export default defineNuxtConfig({
uri: process.env.URL ? `${process.env.URL}/api/graphql` : 'http://localhost:3000/api/graphql',
},
},
ignore: ['data/db'],
});

0 comments on commit c46ff17

Please sign in to comment.