Git Product home page Git Product logo

simple-website's Introduction

Simple website with Docker

The github repository is here: github.com/heyawhite/simple-website

The Docker Hub image is here: hub.docker.com/r/heyawhite/simple-website/

Build this website with Docker

To build this website on your local machine, you must have Docker installed.

To see if you have any running Docker machines, run docker-machine ls in your terminal. If you've just installed Docker for the first time, you probably have no machines created just yet and the list will be empty. To create your machine, run the following command in the terminal:

docker-machine create --driver virtualbox default
  1. Enter the Docker environment with eval $(docker-machine env default)
  2. To run the Docker image from my repository, run docker run -d -p 80:80 heyawhite/simple-website
  3. Get the IP address of your Docker Machine by running docker-machine ip default
  4. Copy the IP address into your browser to view the website.

Build this on Triton with CNS

To build this on Triton with Container Name Service:

  1. Enter the Triton environment with eval $(triton env)
  2. Make sure CNS is enabled by running triton account update triton_cns_enabled=true
  3. Run a container: docker run -d -p 80 --label triton.cns.services=mycoolsite heyawhite/simple-website
  4. List the available containers: docker ps
  5. Find your instance of the simple website and run triton instance get <instance name> to get the DNS information
  6. Find the Triton CNS powered DNS name. It will have a structure that looks like: <service name>.svc.<account uuid>.<data center name>.triton.zone
  7. Assign the DNS name as a CNAME for your vanity URL in your domain registrar of choice.

It may take a while to propogate before your URL shows the simple website. You can check on it by running dig <yourwebsite.com>

simple-website's People

Contributors

alexandrascript avatar

Watchers

James Cloos avatar  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.