Sign inSign up

himelranaswe/sms-gateway

By himelranaswe

•Updated over 1 year ago

SMS Gateway app for himosoft

Image
API management
0

235

himelranaswe/sms-gateway repository overview

⁠SMS Gateway Docker Compose Setup

This repository contains a docker-compose.yml configuration for running the SMS Gateway application in a Docker container. It uses the image smsgateway-app and exposes the application on port 8000.

⁠Requirements

mysql database config

⁠Services

The docker-compose.yml file defines the following service:

⁠himelranaswe/sms-gateway
  • Image: himelranaswe/sms-gateway:1.0.0
  • Container Name: himelranaswe/sms-gateway
  • Ports: Exposes port 8000 to the host machine (adjust if your app uses a different port).
  • Environment Variables:
    • DEBUG: Set to "False" for production environment.
    • SECRET_KEY: A secret key used by Django. Replace with your own secure key.
    • ALLOWED_HOSTS: Hosts that are allowed to access the Django app. Add your domain or IP here.
    • DB_NAME: Name of the database.
    • DB_USER: Database username.
    • DB_PASSWORD: Database password.
    • DB_HOST: IP address or hostname of the database server.
    • DB_PORT: Port number for the database.
    • DJANGO_SUPERUSER_PASSWORD: Password for the Django superuser.
  • Restart Policy: unless-stopped (Container will restart unless explicitly stopped).

⁠Requirements

  • Docker
  • Docker Compose

⁠Setup Instructions

⁠1. Clone the repository (if applicable)

If this docker-compose.yml is part of a larger project, clone the repository first:

services:
  smsgate:
    image: himelranaswe/sms-gateway:1.0.0
    container_name: sms-gateway
    ports:
      - "8000:8000"  # Adjust if your app uses a different port
    environment:
      DEBUG: "False"
      SECRET_KEY: ""
      ALLOWED_HOSTS: "localhost,127.0.0.1"
      DB_NAME: "smsgate"
      DB_USER: "smsgate"
      DB_PASSWORD: "xxxxxxx"
      DB_HOST: "127.0.0.1"
      DB_PORT: "3306"
      DJANGO_SUPERUSER_PASSWORD: "StrongPassword"
    restart: unless-stopped

Username: himosoft Password: Your provided password in env: DJANGO_SUPERUSER_PASSWORD

Tag summary

Content type

Image

Digest

sha256:788aa8115…

Size

187 MB

Last updated

over 1 year ago

docker pull himelranaswe/sms-gateway:1.1.0