Essai modification dockerfile
This commit is contained in:
parent
e135b634ff
commit
306ad7c72c
3 changed files with 5 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
||||||
services:
|
services:
|
||||||
webserver:
|
webserver:
|
||||||
build: docker/apache2
|
build: docker/apache2
|
||||||
|
container_name: webserver
|
||||||
ports:
|
ports:
|
||||||
- 5000:5000
|
- 5000:5000
|
||||||
- 80:80
|
- 80:80
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
ServerAdmin webmaster@localhost
|
ServerAdmin webmaster@localhost
|
||||||
DocumentRoot /var/www/html
|
DocumentRoot /var/www/html
|
||||||
|
Redirect permanent / https://localhost/
|
||||||
|
|
||||||
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
|
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
|
||||||
# error, crit, alert, emerg.
|
# error, crit, alert, emerg.
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
RUN apk add --no-cache curl
|
RUN apk add --no-cache curl iputils-ping
|
||||||
CMD ["curl", "webserver:80"]
|
# CMD ["curl", "webserver:443"]
|
||||||
|
CMD ["ping", "webserver -c 4"]
|
Loading…
Add table
Add a link
Reference in a new issue