Skip to content

Commit

Permalink
fix dev compose file after monorepo refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
IkeHunter committed Sep 5, 2024
1 parent 208aca9 commit 7df6196
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
8 changes: 4 additions & 4 deletions docker-compose.network.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ services:
- HOST=localhost
- JWT_SECRET_KEY=changeme
- TOKEN_HEADER_KEY=Authorization
- MONGO_URI=mongodb://root:changeme@mongo-jukebox-network:27017
- MONGO_URI=mongodb://root:changeme@mmongo-network-jbx:27017
- SP_ID=${SP_ID}
- SP_SECRET=${SP_SECRET}
- LOG_LEVEL=debug
- KAFKA_BROKERS=kafka-jbx:9092
ports:
- 9000:9000
depends_on:
- mongo-jukebox
- mongodb
- kafka
volumes:
- ./server:/app/server
Expand All @@ -44,10 +44,10 @@ services:
- WEBSOCKET_URI=websocket-jbx:9001
attach: false

mongo-jukebox:
mongodb:
image: mongo:6.0.9
restart: always
container_name: mongo-jukebox-network
container_name: mongo-network-jbx
ports:
- 27017:27017
volumes:
Expand Down
15 changes: 8 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
services:
api:
server:
restart: always
build:
context: .
dockerfile: ./Dockerfile.dev
context: ./
dockerfile: ./server/Dockerfile
args:
- NODE_ENV=development
environment:
Expand All @@ -17,23 +17,24 @@ services:
- MONGO_DB=db
- MONGO_USER=root
- MONGO_PASSWORD=changeme
- MONGO_URI=mongodb://root:changeme@mongo-jukebox:27017
- MONGO_URI=mongodb://root:changeme@mongo-jbx:27017
- SPOTIFY_CLIENT_ID=${SPOTIFY_CLIENT_ID}
- SPOTIFY_CLIENT_SECRET=${SPOTIFY_CLIENT_SECRET}
ports:
- 8000:8000
depends_on:
- mongo-jukebox
- mongodb
volumes:
- ./server:/app/server
- ./jest.config.ts:/app/jest.config.ts
- ./packages:/app/packages
# - ./dist:/app/dist
command: npm run dev

mongo-jukebox:
mongodb:
image: mongo:6.0.9
restart: always
container_name: mongo-jukebox
container_name: mongo-jbx
ports:
- 27017:27017
volumes:
Expand Down

0 comments on commit 7df6196

Please sign in to comment.