Skip to content

Commit

Permalink
Merge pull request #66 from Arquisoft/multiplayer1
Browse files Browse the repository at this point in the history
Multiplayer 1
  • Loading branch information
pelazas committed Apr 3, 2024
2 parents a0ba292 + f83830e commit 7305b10
Show file tree
Hide file tree
Showing 22 changed files with 5,992 additions and 93 deletions.
33 changes: 24 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,20 @@ services:
- mynetwork
environment:
MONGODB_URI: mongodb://mongodb:27017/userdb

multiplayerservice:
container_name: multiplayerservice-${teamname:-defaultASW}
image: ghcr.io/arquisoft/wiq_en2a/multiplayerservice:latest
profiles: ["dev", "prod"]
build: ./multiplayerservice
depends_on:
- mongodb
ports:
- "8006:8006"
networks:
- mynetwork
environment:
MONGODB_URI: mongodb://mongodb:27017/userdb

gatewayservice:
container_name: gatewayservice-${teamname:-defaultASW}
Expand All @@ -103,16 +117,17 @@ services:
QG_SERVICE_URL: http://questiongeneratorservice:8003
GAME_SERVICE_URL: http://gameservice:8004
GROUP_SERVICE_URL: http://groupservice:8005
MULTIPLAYER_SERVICE_URL: http://multiplayerservice:8006

webapp:
container_name: webapp-${teamname:-defaultASW}
image: ghcr.io/arquisoft/wiq_en2a/webapp:latest
profiles: ["dev", "prod"]
build: ./webapp
depends_on:
- gatewayservice
ports:
- "3000:3000"
# webapp:
# container_name: webapp-${teamname:-defaultASW}
# image: ghcr.io/arquisoft/wiq_en2a/webapp:latest
# profiles: ["dev", "prod"]
# build: ./webapp
# depends_on:
# - gatewayservice
# ports:
# - "3000:3000"

prometheus:
image: prom/prometheus
Expand Down
20 changes: 20 additions & 0 deletions multiplayerservice/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Use an official Node.js runtime as a parent image
FROM node:20

# Set the working directory in the container
WORKDIR /usr/src/multiplayerservice

# Copy package.json and package-lock.json to the working directory
COPY package*.json ./

# Install app dependencies
RUN npm install

# Copy the app source code to the working directory
COPY . .

# Expose the port the app runs on
EXPOSE 8006

# Define the command to run your app
CMD ["node", "server.js"]
Loading

0 comments on commit 7305b10

Please sign in to comment.