Public Repository

Last pushed: a month ago
Short Description
RESTful API and Client for sending/receiving SMS messages and storing SMS messaging history.
Full Description

Docker Compose File

version: '2'

services:
  sms-api:
    image: dmcmillen/sms-api:latest
    ports:
      - "9093:9093"
    restart: always
    environment:
      - SMS_USER=${SMS_USER}
      - SMS_PASS=${SMS_PASS}
      - TWILIO_ACCOUNT_SID=${TWILIO_ACCOUNT_SID}
      - TWILIO_AUTH_TOKEN=${TWILIO_AUTH_TOKEN}
      - TWILIO_PHONE_NUMBER=${TWILIO_PHONE_NUMBER}
      - MONGO_USER=${MONGO_USER}
      - MONGO_PASS=${MONGO_PASS}
      - MONGO_DB=${MONGO_DB}
    volumes:
      - ./logs/:/var/log/sms-api/
    links:
    - mongodb
  mongodb:
    image: bitnami/mongodb:latest
    ports:
      - "27017:27017"
    environment:
      - MONGODB_USERNAME=${MONGO_USER}
      - MONGODB_PASSWORD=${MONGO_PASS}
      - MONGODB_DATABASE=${MONGO_DB}
    volumes:
      - './data:/bitnami/mongodb'

.env

MONGO_PASS=
MONGO_USER=
TWILIO_ACCOUNT_SID=
TWILIO_AUTH_TOKEN=
TWILIO_PHONE_NUMBER=
SMS_USER=
SMS_PASS=

Command

docker-compose up -d

Swagger Docs

$(boot2docker ip):9093/api/sms/docs

Chat Client

`$(boot2docker ip):9093/api/sms/

Docker Pull Command
Owner
dmcmillen

Comments (0)