Sign inSign up

mindfire1/social-service

By mindfire1

•Updated about 1 year ago

Mindfire Social Backend: A scalable backend for social media with Spring Boot and Docker support.

Image
API management
0

918

mindfire1/social-service repository overview

⁠Mindfire Social Backend

The backend service for Mindfire Social, a social media platform that allows users to connect, share, and engage. Built with Java Spring Boot, it integrates with PostgreSQL, Kafka, and MongoDB to deliver a scalable and feature-rich experience.


⁠Quick Start

⁠Using Docker

Pull the latest Docker image and start the backend service.

docker pull mindfire1/social-service:latest
docker run -d -p 8081:8081 --name mindfire-social-backend \
  -e SPRING_DATASOURCE_URL=<jdbc-url> \
  -e SPRING_DATASOURCE_USERNAME=<db-username> \
  -e SPRING_DATASOURCE_PASSWORD=<db-password> \
  -e SUPPORT_EMAIL=<support-email> \
  -e APP_PASSWORD=<your-app-password> \
  mindfire1/social-service:latest

⁠Environment Variables

Variable NameDescriptionDefault Value
SPRING_DATASOURCE_URLJDBC URL for PostgreSQL databasejdbc:postgresql://db:5432/mindfire_social
SPRING_DATASOURCE_USERNAMEDatabase usernamepostgres
SPRING_DATASOURCE_PASSWORDDatabase passwordpassword
SERVER_PORTPort the backend service runs on8081
SUPPORT_EMAILSupport email to send emails on registration-
APP_PASSWORDEmail app password to login-

⁠Running with Docker Compose

To simplify running the application and its dependencies, use Docker Compose:

services:
  backend:
    image: mindfire1/social-service:latest
    ports:
      - "8081:8081"
    environment:
      SPRING_DATASOURCE_URL: jdbc:postgresql://db:5432/mindfire_social
      SPRING_DATASOURCE_USERNAME: postgres
      SPRING_DATASOURCE_PASSWORD: root
      SUPPORT_EMAIL: '<support-email>'
      APP_PASSWORD: '<your-app-password>'
  db:
    image: postgres:15-alpine
    container_name: postgres-db
    environment:
      POSTGRES_DB: mindfire_social
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: root
    ports:
      - "5432:5432"
  redis:
    image: redis:7.4.2-alpine
    container_name: redis-server
    ports:
      - "6379:6379"
    command: ["redis-server", "--appendonly", "yes"]

Run the application:

docker-compose up

⁠License

This project is licensed under the MIT License.

Tag summary

Content type

Image

Digest

sha256:49991c8a4…

Size

212 MB

Last updated

about 1 year ago

docker pull mindfire1/social-service