diff --git a/backend/.env b/backend/.env index 1df494e2..0da1becb 100644 --- a/backend/.env +++ b/backend/.env @@ -1,3 +1,2 @@ TOKEN_SECRET=27a0967eed44a78feec1ccd9225343258894288202c0a45a8f93adce6786dbc9ae5a7fc4df716f29eefed7067d9b94fa9f7c2ab7dd7781d36cb22206bf25b886 LINK_SECRET=ijr2iq34rfeiadsfkjq3ew -MONGODB_URI=mongodb://chats:27017 diff --git a/compose.yml b/compose.yml index 07cf5658..2bf4d7b2 100644 --- a/compose.yml +++ b/compose.yml @@ -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: @@ -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