Git Product home page Git Product logo

mars-server's Introduction

๐Ÿก๐Ÿ–ฅ๏ธ Mars Server

Managed home server with Docker, Docker Compose, Make and Bash.

๐Ÿงฉ Requirements

๐Ÿง‘โ€๐Ÿณ Configuration

Before deploying the services it is necessary to configure them. To do so, it is enough to create an .env file for each service with the content of the corresponding .env.template.

๐Ÿ—๏ธ Installation

server.sh install

๐Ÿง™ Usage

Usage: server [OPTIONS] COMMAND

This script aims to manage a home server based on Docker, Docker Compose, Make and Bash.

Available options:
  -h, --help      Print this help and exit

Available commands:
  install         Install all services
  uninstall       Uninstall all services
  start           Start all services
  stop            Stop all services
  restart         Restart all services
  status          Get the status of all services
  services        Open a menu based on FZF to manage the services separately

๐ŸŽฏ Credits

To realise this project I have based myself on many similar projects. There were countless of them and I gave them all a star.

๐Ÿ™ Thank you very much for these wonderful creations.

โญ Stargazers

Stargazers repo roster for @borjapazr/mars-server

โš–๏ธ License

The MIT License (MIT). Please see License for more information.

mars-server's People

Contributors

borjapazr avatar linjan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mars-server's Issues

server.sh services restart seems to destroy volumes

I am not sure why, but restart target of a service seems to be destroying volumes, instead of just stop and start.

By the way, there are many projects out there including homelabos, charjabox, make-my-server, ansible-nas-master, homeserver-compose and many more. Your little creation is so simple and yet concise.

a simple way to provide sensitive and/or dynamic env for docker-compose

I understand this is a simple tool not meant for production, but it would be nice if there is a simple elegant way to accomplish this, as having plain passwords lying around makes many people nervous these days.

As an example, maybe each service can have a separate, optional .env.sh file with contents like:

MYUID=$(id -u)
yyy_password=$(pass docker-compose/services/mssql)

a wrapper is then used to inject the dynamic env before invoking the real docker-compose? This probably means that a gpg passphrase will be needed once for server.sh xxx operation every so often?

# docker-compose-wrapper file
##########
function compose_wrapper() {
    if [ -f "../../.usewrapper" ]; then 
      set -a
      [-f ".env.sh"] && source <(cat .env.sh )
      set +a
    fi
    $real_compose  "$@"
}
...

compose_wrapper "$@"
##############

Request and more images to add

please add these for raspberry pi ubuntu 22.04 LTS

Request: if you can also make a script so that it download the source code and runs

sudo docker build --tag $project_name:$dockerfile_name .

Why do this? docker tagging system sometimes doesn't know the platform to build on or the developer has not updated the image yet for raspberry pi ubuntu [22.04 LTS]

1. mosquitto used for notificationsXMPP is better and offers better options.
2. hapttic used for remote code execution on different systems
3. docpht use for bookmarking and saving code
4. immich used for back up of pictures and videos instead of nextcloud and similar services that take too long.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.