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:
|
||||
webserver:
|
||||
build: docker/apache2
|
||||
container_name: webserver
|
||||
ports:
|
||||
- 5000:5000
|
||||
- 80:80
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
ServerAdmin webmaster@localhost
|
||||
DocumentRoot /var/www/html
|
||||
Redirect permanent / https://localhost/
|
||||
|
||||
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
|
||||
# error, crit, alert, emerg.
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
FROM alpine:latest
|
||||
RUN apk add --no-cache curl
|
||||
CMD ["curl", "webserver:80"]
|
||||
RUN apk add --no-cache curl iputils-ping
|
||||
# CMD ["curl", "webserver:443"]
|
||||
CMD ["ping", "webserver -c 4"]
|
Loading…
Add table
Add a link
Reference in a new issue