name: sfa_backend services: zipkin: image: openzipkin/zipkin container_name: zipkin ports: - "9411:9411" restart: unless-stopped networks: - sfa-network service-registry: image: raigam-sfa/service-registry:latest build: ./SFA_Backend_Service_Registry container_name: service-registry ports: - "8761:8761" depends_on: - zipkin environment: - EUREKA_SERVER_URL=http://service-registry:8761/eureka/ restart: unless-stopped networks: - sfa-network config-server: image: raigam-sfa/config-server:latest build: ./SFA_Backend_Config_Server container_name: config-server ports: - "8088:8088" environment: - SERVER_ADDRESS=0.0.0.0 - ZIPKIN_URL=http://zipkin:9411/api/v2/spans - EUREKA_SERVER_URL=http://service-registry:8761/eureka/ - AUTH_SERVICE_LB=http://auth-service:8081 - USER_DEMARCATION_SERVICE_LB=http://user-demarcation-service:8082 - SALES_SERVICE_LB=http://sales-service:8083 - REPORT_SERVICE_LB=http://report-service:8084 - DB_NAME=raigamsfadb_dev depends_on: - zipkin - service-registry restart: unless-stopped networks: - sfa-network auth-service: image: raigam-sfa/auth-service:latest build: ./SFA_Backend_Auth_Service container_name: auth-service ports: - "8081:8081" environment: - ZIPKIN_URL=http://zipkin:9411/api/v2/spans - EUREKA_SERVER_URL=http://service-registry:8761/eureka/ - CONFIG_SERVER_URL=http://config-server:8088 - USER_DEMARCATION_SERVICE_URL=http://user-demarcation-service:8082 - DB_NAME=raigamsfadb_dev depends_on: - zipkin - service-registry - config-server restart: unless-stopped networks: - sfa-network user-demarcation-service: image: raigam-sfa/user-demarcation-service:latest build: ./SFA_Backend_User_Service container_name: user-demarcation-service ports: - "8082:8082" environment: - ZIPKIN_URL=http://zipkin:9411/api/v2/spans - EUREKA_SERVER_URL=http://service-registry:8761/eureka/ - CONFIG_SERVER_URL=http://config-server:8088 - DB_NAME=raigamsfadb_dev depends_on: - zipkin - service-registry - config-server restart: unless-stopped networks: - sfa-network sales-service: image: raigam-sfa/sales-service:latest build: ./SFA_Backend_Sales_Service container_name: sales-service ports: - "8083:8083" environment: - ZIPKIN_URL=http://zipkin:9411/api/v2/spans - EUREKA_SERVER_URL=http://service-registry:8761/eureka/ - CONFIG_SERVER_URL=http://config-server:8088 - USER_DEMARCATION_SERVICE_URL=http://user-demarcation-service:8082 - DB_NAME=raigamsfadb_dev depends_on: - zipkin - service-registry - config-server restart: unless-stopped networks: - sfa-network report-service: image: raigam-sfa/report-service:latest build: ./SFA_Backend_Report_Service container_name: report-service ports: - "8084:8084" environment: - ZIPKIN_URL=http://zipkin:9411/api/v2/spans - EUREKA_SERVER_URL=http://service-registry:8761/eureka/ - CONFIG_SERVER_URL=http://config-server:8088 - USER_DEMARCATION_SERVICE_URL=http://user-demarcation-service:8082 - SALES_SERVICE_URL=http://sales-service:8083 - DB_NAME=raigamsfadb_dev depends_on: - zipkin - service-registry - config-server restart: unless-stopped networks: - sfa-network api-gateway: image: raigam-sfa/api-gateway:latest build: ./SFA_Backend_API_Gateway container_name: api-gateway ports: - "8080:8080" environment: - ZIPKIN_URL=http://zipkin:9411/api/v2/spans - EUREKA_SERVER_URL=http://service-registry:8761/eureka/ - CONFIG_SERVER_URL=http://config-server:8088 - AUTH_SERVICE_LB=http://auth-service:8081 - USER_DEMARCATION_SERVICE_LB=http://user-demarcation-service:8082 - SALES_SERVICE_LB=http://sales-service:8083 - REPORT_SERVICE_LB=http://report-service:8084 depends_on: - zipkin - service-registry - config-server - auth-service - user-demarcation-service - sales-service - report-service restart: unless-stopped networks: - sfa-network # mysql: # image: mysql:8.0 # container_name: mysql # restart: always # environment: # MYSQL_DATABASE: raigamsfadb # MYSQL_USER: admin # MYSQL_PASSWORD: sfaRaigam2025 # ports: # - "3306:3306" # networks: # - sfa-network networks: sfa-network: driver: bridge # to run this file: # docker compose up --build --force-recreate -d