Giter VIP home page Giter VIP logo

simplehttpserver's Introduction

simpleHttpServer

Simple way to set up website with docker.

With docker-command

docker run --name my_simplehttpserver -p 8080:80 -v /home/aikain/www:/var/www -d aikain/simplehttpserver:0.1

Just change port (8080) and volume (/home/aikain/www) to match your setup.

You can stop container:

docker stop my_simplehttpserver

And start it again:

docker start my_simplehttpserver

If you want remove container, stop it and then remove:

docker stop my_simplehttpserver
docker rm my_simplehttpserver

With docker-compose

Make docker-compose.yml-file with content:

version: "2"
services:
  www:
    image: aikain/simplehttpserver:0.1
    restart: always
    ports:
      - "8080:80"
    volumes:
      - "/srv/aikain/www:/var/www"

Change port (8080) and volume (/home/aikain/www) to match your setup.

Build and run with docker-compose:

docker-compose up --build -d

Stop/Start/Restart:

docker-compose stop
docker-compose start
docker-compose restart

Remove:

docker-compose stop
docker-compose rm

simplehttpserver's People

Contributors

aikain avatar

Watchers

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