mirror of
https://github.com/librespeed/speedtest.git
synced 2024-05-10 18:54:52 +00:00
Add Docker / Docker Compose Configurations
This commit is contained in:
6
Dockerfile
Normal file
6
Dockerfile
Normal file
@@ -0,0 +1,6 @@
|
||||
FROM php:5.6-apache
|
||||
EXPOSE 80
|
||||
WORKDIR /var/www/html/
|
||||
COPY . /var/www/html
|
||||
COPY example6.html /var/www/html/index.html
|
||||
CMD ["/usr/local/bin/apache2-foreground"]
|
||||
22
README.md
22
README.md
@@ -23,6 +23,27 @@ Only modern browsers are supported (IE11, latest Edge, latest Chrome, latest Fir
|
||||
## How to use in your site
|
||||
See the examples or doc.md
|
||||
|
||||
## Docker + Docker Compose
|
||||
|
||||
The project includes a basic `docker-compose.yml` for development. To run, execute the following:
|
||||
|
||||
```
|
||||
$ docker-compose build
|
||||
|
||||
$ docker-compose up
|
||||
```
|
||||
|
||||
|
||||
Speedtest will be available at [http://0.0.0.0:8888/](http://0.0.0.0:8888/). You can try out all of the examples via their associated urls (i.e. `http://0.0.0.0:8888/example1.html`).
|
||||
|
||||
To run via Docker directly:
|
||||
|
||||
```
|
||||
$ docker build -t adolfintel/speedtest:latest .
|
||||
|
||||
$ docker run -d --name speedtest -p 0.0.0.0:80:80 adolfintel/speedtest:latest
|
||||
```
|
||||
|
||||
## License
|
||||
Copyright (C) 2016-2017 Federico Dossena
|
||||
|
||||
@@ -38,3 +59,4 @@ GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/lgpl>.
|
||||
|
||||
|
||||
8
docker-compose.yml
Normal file
8
docker-compose.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
speedtest:
|
||||
build: .
|
||||
image: adolfintel/speedtest:${TAG:-latest}
|
||||
ports:
|
||||
- "8888:80"
|
||||
Reference in New Issue
Block a user