GithubHelp home page GithubHelp logo

todokku / nockio Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nadavtasher/nockio

0.0 0.0 0.0 209 KB

A simple Docker-based PaaS.

License: MIT License

Dockerfile 2.16% PHP 52.75% HTML 12.22% JavaScript 26.27% CSS 4.64% Shell 1.97%

nockio's Introduction

Nockio

is a simple Docker-based PaaS.

Installation

Make sure to install Docker on your system beforehand.

Make sure your local user is in the docker group:

sudo usermod -aG docker $USER

Make sure docker is enabled on boot:

sudo systemctl enable docker

Download the .deb file from the Releases tab.

Run the following command:

sudo apt install ./nockio_*.deb

Modify the /var/lib/nockio/.compose.nockio file as needed

Make sure no other program is using the configured ports.

Finally, run:

nockio up

This process can take some time.

Project file reference

File: .compose.nockio

This is a regular docker-compose configuration. It is a must in order to deploy an app on Nockio.

File: .proxy.nockio

This file describes the proxy configuration. The proxy is an Apache2 server, with sub-configurations for each application.

Example configuration:

<VirtualHost *:80>
    # Set the server name
    ServerName dashboard.localhost
    # Redirect to HTTPS
    Redirect / https://dashboard.localhost/
</VirtualHost>
<VirtualHost *:443>
    # Set the server name
    ServerName dashboard.localhost
    # Enable SSL/TLS
    SSLEngine On
    # Set the certificate files
    SSLCertificateFile /var/lib/nockio/certificates/dashboard.localhost/certificate.crt
    SSLCertificateKeyFile /var/lib/nockio/certificates/dashboard.localhost/private.key
    # Proxy
    ProxyPass / http://dashboard/
    ProxyPassReverse / http://dashboard/
</VirtualHost>

File: .application.nockio

This file describes the application, and is used to show information on the dashboard.

Example configuration:

{
  "description": "A simple PaaS based on Docker",
  "services": [
    "PHP"
  ]
}

File: .log.compose.nockio

This file is a log file of the application's deployment. It is generated once you push a commit on master.

Usage

To access the dashboard, navigate to dashboard.localhost in your web browser.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

nockio's People

Contributors

nadavtasher avatar

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.