Skip to content
@FastUHC

FastUHC

FastUHC is an infrastructure allowing the settings of the mini-game from a website.




About the project

Core/Api fastuhc_backend fastuhc_web

FastUHC is an infrastructure composed of a a Core/Api, Backend and Web-Panel

It's used to code an UHC plugin easly with all features of FastUHC's system. With the web panel used to configure the UHC mini-game coded with the API.

Installation

To install the entire FastUHC infrastructure, you just have to make a docker-compose with some Traefik labels. You need to use Docker images given in others repositories. You just have to merge all docker-compose exemples in one like that.

In this case, i'm using a Traefik proxy, you can adapt it with other proxy.

Docker-Compose exemple:

version: "3"
services:
  backend:
    container_name: fastuhc_backend
    labels:
      - traefik.enable=true
      - traefik.http.routers.backend.rule=Host(`backend.localhost`)
      - traefik.http.services.backend.loadbalancer.server.port=8000
      - traefik.http.routers.backend.entrypoints=web
      - traefik.http.middlewares.cors.headers.accessControlAllowOriginList=*
      - traefik.http.middlewares.cors.headers.accessControlAllowMethods=GET,OPTIONS,PUT
      - traefik.http.middlewares.cors.headers.accessControlAllowHeaders=*
      - traefik.http.routers.backend.middlewares=cors
    networks:
      - internal
    restart: unless-stopped
    build:
      dockerfile: ./Dockerfile
      context: ./fastuhc_backend
    expose:
      - 8000

  web:
    container_name: fastuhc_web
    labels:
    - traefik.enable=true
    - traefik.http.routers.web.rule=Host(`web.localhost`)
    - traefik.http.services.web.loadbalancer.server.port=3000
    - traefik.http.routers.web.entrypoints=web
    networks:
      - internal
    restart: unless-stopped
    build:
      dockerfile: ./Dockerfile
      context: ./fastuhc_web
    environment:
      - NUXT_PUBLIC_BASE_URL=http://backend.localhost/
    expose:
      - 3000

  traefik:
    image: "traefik"
    container_name: "traefik"
    networks:
      - internal
    command:
      - "--api.insecure=true"
      - "--providers.docker=true"
      - "--providers.docker.exposedbydefault=false"
      - "--entrypoints.web.address=:80"
    ports:
      - "80:80"
      - "8080:8080"
    volumes:
      - "/var/run/docker.sock:/var/run/docker.sock:ro"
networks:
  internal:
    driver: bridge

Informations

To get info on environnement variables of services. Check on the target service's repository. For Traefik service, go on his docs.

Features

  • Web panel to configure the mini-game for the host
  • Performances
  • Easly to use
  • Configuration files
  • Docker

Contributors

Popular repositories Loading

  1. .github .github Public

Repositories

Showing 1 of 1 repositories
  • .github Public
    FastUHC/.github’s past year of commit activity
    0 0 0 0 Updated Sep 25, 2022

Top languages

Loading…

Most used topics

Loading…