Skip to content

alexandrascript/simple-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published