Skip to content

Commit

Permalink
Move MongoDB URI from .env file to compose
Browse files Browse the repository at this point in the history
  • Loading branch information
gf-rog committed Jan 3, 2024
1 parent e00c77c commit 4b003f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion backend/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
TOKEN_SECRET=27a0967eed44a78feec1ccd9225343258894288202c0a45a8f93adce6786dbc9ae5a7fc4df716f29eefed7067d9b94fa9f7c2ab7dd7781d36cb22206bf25b886
LINK_SECRET=ijr2iq34rfeiadsfkjq3ew
MONGODB_URI=mongodb://chats:27017
5 changes: 4 additions & 1 deletion compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ services:
volumes:
- ./db/data:/data
- ./db/conf:/conf

chats:
image: mongo:latest
image: mongo:4.4.26
ports:
- 27017:27017

frontend:
build: ./frontend
ports:
Expand All @@ -32,6 +34,7 @@ services:
command: sh -c "/wait && npm run prod"
environment:
- NEO4J_URI=neo4j://db:7687
- MONGODB_URI=mongodb://chats:27017
- WAIT_HOSTS=db:7474
- WAIT_BEFORE_HOSTS=15
- WAIT_AFTER_HOSTS=3

0 comments on commit 4b003f8

Please sign in to comment.