Giter Club home page Giter Club logo

wrk-compose's Introduction

Alnoda workspaces compose

This repo contains example of docker-compose that can be used to launch self-hosted Alnoda workspaces with docker compose.

HTTPS

To start Alnoda workspace on a cloud server with basic authentication over https with self-signed certificate:

  • Make sure server has docker and docker compose
  • Make sure ports 8020 - 8040 are not blocked by the firewall. For example in Ubuntu/Debian
ufw allow 8020:8040/tcp
  • Clone repository
git clone https://github.com/bluxmit/wrk-compose.git
cd wrk-compose
  • Set environmental variable WRK_HOST - public server IP which allows access over the Internet, i.e.
export WRK_HOST=34.194.12
  • start workspace
cd basic-auth-https; docker-compose up -d

Now you can open browser on https://[WRK_HOST]:8020

Other workspaces

By default latest base Alnoda workspace will run.

You can start another worksppace with evironmental variable WRK_IMAGE, for example

export WRK_IMAGE='alnoda/codeserver-workspace:5.0'

Basic authentication

the default authentication is

  • user: admin
  • password: admin

You can create new login workspace with htpasswd.

You can install htpasswd in any of the alnoda workspaces with

sudo apt-get install apache2-utils -y

To create new user:password pair:

echo $(htpasswd -nB <userName>) | sed -e s/\\$/\\$\\$/g

where - is the name of your user.

Enter password on prompt and htpasswd wil produce credentials, for example someuser:$$2y$$05$$t2MSJSPp2V9HdLWYq9z.UeYFz2R3un9ZuiBitSjeiN3Osz6fGNZ7u

You can use to replace in the respective docker-compose yaml file the label of a traefik service traefik.http.middlewares.basic-auth.basicauth.users=admin:$$2y$$05$$eub6CV.CwUYCCQjNBvSf5uZnzdRmVwGZ/ncxecb9O7WxCR8aLuM3K.

HTTP

Using HTTP to run workspaces on a remote server lacks sufficient security, as it's not encrypted like HTTPS. This method should be avoided unless you're operating workspaces within an internal network.

You start Alnoda workspace on a cloud server with basic authentication over http use another docker-compose file:

cd basic-auth-http; docker-compose up -d

Now you can open browser on http://[WRK_HOST]:8020

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.