Skip to content

Commit

Permalink
add status badge
Browse files Browse the repository at this point in the history
  • Loading branch information
bansikah22 committed Sep 11, 2024
1 parent c1e40d1 commit b77350f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 20 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# User Fullstack Application

This repository contains a full-stack application with a React frontend (`user-frontend`) and a Spring Boot backend (`user-backend`). The backend provides APIs that the frontend consumes to display data and perform operations.
## Status
![Build and Deploy Frontend](https://github.com/bansikah22/user-fullstack/actions/workflows/frontend.yml/badge.svg)
![Build and Deploy Backend](https://github.com/bansikah22/user-fullstack/actions/workflows/backend.yml/badge.svg)


## Getting Started

Expand Down
32 changes: 12 additions & 20 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,38 +1,30 @@
version: '3.8'
version: "3.8"

services:
traefik:
image: traefik:v3.0
command:
- "--configFile=/etc/traefik/traefik.yml"
- "--api.insecure=true"
- "--providers.docker=true"
- "--entrypoints.web.address=:80"
ports:
- "80:80"
- "8080:8080"
- "80:80" # Expose HTTP
- "8080:8080" # Expose Traefik dashboard
volumes:
#- "./traefik.yml:/etc/traefik/traefik.yml:rw"
- "/var/run/docker.sock:/var/run/docker.sock:rw"
networks:
- web
- "/var/run/docker.sock:/var/run/docker.sock:ro" # Allow Traefik to listen to Docker events

frontend:
user-frontend:
image: user-frontend:1.0
labels:
- "traefik.enable=true"
- "traefik.http.routers.frontend.rule=Host(`frontend.localhost`)"
- "traefik.http.services.frontend.loadbalancer.server.port=3001"
networks:
- web
- "traefik.http.services.frontend.loadbalancer.server.port=80"
depends_on:
- user-backend

backend:
user-backend:
image: user-backend:1.0
labels:
- "traefik.enable=true"
- "traefik.http.routers.backend.rule=Host(`backend.localhost`)"
- "traefik.http.services.backend.loadbalancer.server.port=8082"
networks:
- web

networks:
web:
external: true

0 comments on commit b77350f

Please sign in to comment.