https://github.com/djono/docker-simple-html-viewer
This docker container is intended for viewing html files only.
https://github.com/djono/docker-simple-html-viewer
docker docker-compose docker-container html html-css-javascript html-template simple viewer
Last synced: 3 months ago
JSON representation
This docker container is intended for viewing html files only.
- Host: GitHub
- URL: https://github.com/djono/docker-simple-html-viewer
- Owner: djono
- License: mit
- Created: 2023-11-13T09:21:20.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-16T14:14:29.000Z (over 2 years ago)
- Last Synced: 2025-08-26T17:26:44.335Z (10 months ago)
- Topics: docker, docker-compose, docker-container, html, html-css-javascript, html-template, simple, viewer
- Language: HTML
- Homepage:
- Size: 89.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Docker Simple HTML Viewer
### Introduction
This docker container is intended for viewing html files only.
You can use this docker to running simple html, html templates, react templates and many more.
### Pre-Requisites
- [Docker](https://docs.docker.com/get-docker/)
- [Docker Compose](https://docs.docker.com/compose/install/)
- [Git](https://git-scm.com/downloads)
### Clone this repository
```
$ git clone https://github.com/djono/docker-simple-html-viewer.git
```
Project structure:
```
.
├── README.md
├── compose.yaml
├── build
│ └── Dockerfile
├── config
│ └── apache2
└── html
└── index.html
```
**README.md** - This instructions file
[**compose.yaml**](compose.yaml)
```
services:
web:
build:
context: build
target: builder
container_name: "MAZJOHN-HTML-VIEWER"
ports:
- '8080:80'
volumes:
- ./html:/var/www/html/
- ./config/apache2:/etc/apache2/
```
**build** - Directory with Dockerfile for building the image.
[**Dockerfile**](build/Dockerfile) - for building the image.
**config** - Directory with apache2 and Others configuration file.
**apache2** - Directory with apache2 configuration file. You can set your own configuration here.
[**000-default.conf**](config/apache2/sites-available/000-default.conf) - You can set your own web server configuration here.
[**default-ssl.conf**](config/apache2/sites-available/default-ssl.conf) - You can set your own web server with ssl protocol configuration here.
**html** - Put your awesome HTML files over here.
[**index.html**](html/index.html) - Sample html file.
### Deploy with docker compose
```
$ docker-compose up -d
```
After the application starts, navigate to `http://localhost:8080` in your web browser or run:
```
$ curl localhost:80
```
Stop and remove the containers
```
$ docker-compose down
```
That's it and have fun.
by [mazjohn.com](https://mazjohn.com)
License
----
[MIT License](LICENSE)