Sign inSign up

fridawi/codebook

By fridawi

•Updated 3 months ago

Monorepo docker images containing both frontend and backend tags for the CodeBook platform.

Image
Languages & frameworks
Web servers
Databases & storage
0

223

fridawi/codebook repository overview

⁠CodeBook - Full-Stack Learning Resource Platform

CodeBook is a full-stack learning resource platform. Built with a robust ASP.NET Core Web API backend, a dynamic React frontend optimized via Nginx reverse proxy, and a reliable SQL Server database. Fully containerized and production-ready for seamless local deployment.

⁠Source Code

⁠Quick Start (Docker Compose)

To spin up the entire stack locally, save the following content into a docker-compose.yml file and run docker compose up -d:

version: '3.8'

services:
  sqlserver:
    image: [mcr.microsoft.com/mssql/server:2022-latest](https://mcr.microsoft.com/mssql/server:2022-latest)
    container_name: codebook_db
    user: "0:0"
    ports:
      - "1433:1433"
    environment:
      - ACCEPT_EULA=Y
      - MSSQL_SA_PASSWORD=Strong@Password123!
    volumes:
      - codebook_mssql_data:/var/opt/mssql/data
    healthcheck:
      test: ["CMD-SHELL", "bash -c '</dev/tcp/127.0.0.1/1433'"]
      interval: 10s
      timeout: 5s
      retries: 5
    networks:
      - codebook-network

  backend:
    image: fridawi/codebook:backend-latest
    container_name: codebook_api
    ports:
      - "5000:8080"
    environment:
      - ASPNETCORE_ENVIRONMENT=Development
      - ConnectionStrings__DefaultConnection=Server=sqlserver;Database=CodeBookDb;User Id=sa;Password=Strong@Password123!;Encrypt=False;TrustServerCertificate=True;MultipleActiveResultSets=True;
    depends_on:
      sqlserver:
        condition: service_healthy
    networks:
      - codebook-network

  frontend:
    image: fridawi/codebook:frontend-latest
    container_name: codebook_ui
    ports:
      - "3000:80"
    networks:
      - codebook-network

networks:
  codebook-network:
    driver: bridge

volumes:
  codebook_mssql_data:

⁠Once all containers are running and healthy, you can access the platform via:

Frontend UI: http://localhost:3000⁠

Backend API Swagger: http://localhost:5000/swagger⁠

Tag summary

Content type

Image

Digest

sha256:ba3a7872c…

Size

25.9 MB

Last updated

3 months ago

docker pull fridawi/codebook:frontend-latest