Skip to content

Commit

Permalink
Merge pull request #39 from Arquisoft/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
uo283055 authored Feb 19, 2024
2 parents 2f34182 + cfaac69 commit 0f60da4
Show file tree
Hide file tree
Showing 7 changed files with 5,721 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,20 @@ services:
networks:
- mynetwork

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

createservice:
container_name: createservice-${teamname:-defaultASW}
image: ghcr.io/arquisoft/wiq_es6b/createservice:latest
Expand Down
20 changes: 20 additions & 0 deletions questions/recordservice/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/recordservice

# 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", "record-service.js"]
Loading

0 comments on commit 0f60da4

Please sign in to comment.