Sign inSign up

varadbelwalkar/odc_swarm_server

By varadbelwalkar

•Updated almost 3 years ago

Get docker-compose file here : https://github.com/VaradBelwalkar/Compute-Services

Image
1

3.8K

varadbelwalkar/odc_swarm_server repository overview

Major change: Now entirely based on golang and more secure, Visit https://github.com/VaradBelwalkar/Private-Cloud-MongoDB⁠, to get docker-compose and build your own private cloud

Get the client for windows and Linux from the GitHub

A typical docker-compose file:

version: '3.9'
services:
  golang_server:
    image: varadbelwalkar/golang_server
    container_name: golang_server
    ports:
      - 8080:8000
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - ./config.json:/app/config.json
      - ./.env:/app/.env
    depends_on:
      - mongo
      - redis

  redis:
    image: redis
    container_name: redis
    volumes:
      - ./redis.conf:/usr/local/etc/redis/redis.conf
    command: redis-server /usr/local/etc/redis/redis.conf

  mongo:
    image: mongo
    container_name: mongo
    environment:
      MONGO_INITDB_ROOT_USERNAME: <admin_useraname>
      MONGO_INITDB_ROOT_PASSWORD: <admin_password>
      MONGO_INITDB_DATABASE: private_cloud
    volumes:
      - mndbdatabase:/data/db

volumes:
  mndbdatabase:

Typical Config.json file:

{
  "emails": [
    "[email protected]",
    "[email protected]"
  ],
  "database": {
    "name": "private_cloud",
    "collections": [
      "user_details",
      "system_details"
    ]
  },
  "images": [
    "image_with_ssh_server_running_and_password_based_ssh_disabled"
  ],
  "server_port": "8000"
}

Typical .env file:

MONGODB_URI="mongodb://mongo:27017/"
REDIS_URL="redis:6379"
REDIS_PASSWORD="<ANYTHING>"
JWT_SECRET="<any_JWT_SECRET>"
PASSWORD_HASH_SECRET="<ANYTHING>"
OFFICIAL_EMAIL="<YOUR_EMAIL_WITH_APP_PASSWORD_ENABLED>"
OFFICIAL_EMAIL_APP_PASSWORD="<YOUR_APP_PASSWORD"

Tag summary

Content type

Image

Digest

sha256:76cdf9be6…

Size

68.8 MB

Last updated

almost 3 years ago

docker pull varadbelwalkar/odc_swarm_server