-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add docker-compose file and modified A2_Part1.yml file
- Loading branch information
1 parent
b16c8dd
commit 282a68d
Showing
3 changed files
with
45 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Pull Docker Container & Run Automated Tests | CD Pipeline | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
services: # Start with this tag. This will contain all the containers you want to run | ||
frontend: | ||
build: # Build the image from the Dockerfile | ||
context: ./frontend # Path to the Dockerfile | ||
dockerfile: Dockerfile # Name of the Dockerfile | ||
container_name: frontend | ||
ports: | ||
- '80:3000' | ||
restart: always | ||
|
||
redis: | ||
container_name: redis | ||
image: redis:latest | ||
restart: always | ||
ports: | ||
- '6379:6379' | ||
|
||
backend: | ||
build: | ||
context: ./backend | ||
dockerfile: Dockerfile | ||
container_name: backend | ||
environment: # Environment variables to be passed to the container | ||
MONGODB_URI: "mongodb+srv://Cluster20901:[email protected]/linkup?retryWrites=true&w=majority&appName=Cluster20901" | ||
ports: | ||
- "5000:5000" | ||
restart: always |