Skip to content

Commit

Permalink
Merge pull request #33 from NUTFes/feature/imaimai/issue28
Browse files Browse the repository at this point in the history
実際にDBの値をフロントで使用する
  • Loading branch information
nose221834 authored Jun 8, 2023
2 parents 1c28df2 + 4af7e67 commit 86611ce
Show file tree
Hide file tree
Showing 15 changed files with 1,281 additions and 7,243 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"eslint.workingDirectories": ["./view"],
}
15 changes: 11 additions & 4 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,27 @@ services:
container_name: "tracking-parking-view"
volumes:
- ./view:/app
command: "npm run start"
command: "yarn start"
ports:
- "3000:3000"
stdin_open: true
tty: true
environment:
- NEXT_PUBLIC_MONGODB_URI=MONGODB_URI=mongodb://root:password@mongo:27017/test?authSource=admin
- NEXT_PUBLIC_MONGODB_DB=tracking_parking
depends_on:
- mongo

mongo:
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
ports:
- 27017:27017
volumes:
- ./mongo:/data/db
- ./mongo:/data/configdb
ports:
- 27017:27017

volumes:
mongo-db:
13 changes: 10 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,16 @@ services:
container_name: "tracking-parking-view"
volumes:
- ./view:/app
command: sh -c "npm install && npm run dev"
command: sh -c "yarn && yarn dev"
ports:
- "3000:3000"
stdin_open: true
tty: true
environment:
NEXT_PUBLIC_MONGODB_URI: mongodb://root:password@mongo:27017/test?authSource=admin
NEXT_PUBLIC_MONGODB_DB: tracking_parking
depends_on:
- mongo

mongo:
image: mongo
Expand All @@ -20,8 +25,7 @@ services:
ports:
- 27017:27017
volumes:
- ./mongo:/data/db
- ./mongo:/data/configdb
- mongo-db:/data/db

mongo-express:
image: mongo-express
Expand All @@ -35,3 +39,6 @@ services:
ME_CONFIG_MONGODB_PORT: 27017
depends_on:
- mongo

volumes:
mongo-db:
Loading

0 comments on commit 86611ce

Please sign in to comment.