jian0209/devopsaurus

By jian0209

Updated 10 months ago

DevOps Platform with cute logo haha

Image
Security
Developer tools
0

1.2K

jian0209/devopsaurus repository overview

Feel free to make a request in github

DevOpsaurus is the platform that can:

  • Execute Configured Command
  • Read Database Configured Query
  • Get or Set Configured Redis

Why DevOpsaurus

  • Encrypted Sensitive Data
  • Clear Role Task
  • Free DevOps Engineer Hands, to give developer search themself
  • Throw your command note, and record it here. To execute command with only click.

Security with encrypted data

  • No more data stole by the mitm (Man-in-the-middle attack)

Sample Docker-compose.yml

version: '3.3'
services:
  devopsaurus_app:
    image: jian0209/devopsaurus:latest
    container_name: devopsaurus_web
    environment:
      DEBUG: 'False'
      REDIS_USERNAME: '{YOUR_REDIS_USERNAME}' # if no username, leave blank or remove this variable
      REDIS_AUTH: '{YOUR_REDIS_AUTH}'
      REDIS_HOST: 'devopsaurus_redis'
      REDIS_PORT: '6379'
      DATABASE_USERNAME: '{YOUR_DATABASE_USERNAME}'
      DATABASE_PASSWORD: '{YOUR_DATABASE_PASSWORD}'
      DATABASE_URL: '{YOUR_DATABASE_URL}'
      DATABASE_PORT: '3306'
      DATABASE_NAME: 'devopsaurus'
      LOG_PATH: '/var/log/'
      ENCRYPT_KEY: '{YOUR_ENCRYPT_KEY}' # Linux Command (hexdump -vn16 -e'4/4 "%08X" 1 "\n"' /dev/urandom)
      INITIAL_USERNAME: 'admin'
      INITIAL_PASSWORD: 'admin'
      INITIAL_EMAIL: '[email protected]'
      WEB_URL: 'https://{YOUR_WEB_URL}'
    ports:
      - "9000:9000" # frontend port, if using redirect from docker, remove it
      - "9001:9001" # backend port, if using redirect from docker, remove it
    healthcheck:
      test: ["CMD", "curl", "http://localhost:9001/v1/health"]
      interval: 30s
      timeout: 30s
      retries: 5
    depends_on:
      - devopsaurus_mysql
      - devopsaurus_redis

  devopsaurus_nginx:
    image: nginx:latest
    container_name: devopsaurus_nginx
    ports:
      - "80:80"
    volumes:
      - /root/devopsaurus/nginx/default.conf:/etc/nginx/conf.d/default.conf
    depends_on:
      - devopsaurus_app

  devopsaurus_mysql:
    image: mysql:8.0.38
    container_name: devopsaurus_mysql
    volumes:
      - /root/devopsaurus/mysql:/var/lib/mysql
    environment:
      MYSQL_ROOT_PASSWORD: '{YOUR_DATABASE_PASSWORD}'
      MYSQL_DATABASE: '{YOUR_DATABASE_NAME}'

  devopsaurus_redis:
    image: redis
    container_name: devopsaurus_redis
    volumes:
      - /root/devopsaurus/redis/redis.conf:/redis.conf
    command: ["redis-server", "/redis.conf"]
    healthcheck:
      test: ["CMD", "redis-cli", "ping"]
      interval: 10s
      timeout: 30s
      retries: 3

Sample of nginx file

map $http_upgrade $connection_upgrade {
  default upgrade;
  '' close;
}

server {
    listen 80;

    location /api {
        proxy_pass http://devopsaurus_app:9001/api;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $connection_upgrade;
    }

    location / {
        proxy_pass http://devopsaurus_app:9000;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $connection_upgrade;
    }
}

To-do
  • Docker container Run / Stop / Restart / Status / Update
  • Create webhook

Tag summary

Content type

Image

Digest

sha256:1a2c80c42

Size

206 MB

Last updated

10 months ago

docker pull jian0209/devopsaurus