Essai modification dockerfile

This commit is contained in:
iMax 2025-01-21 09:41:25 +01:00
parent e135b634ff
commit 306ad7c72c
3 changed files with 5 additions and 2 deletions

View file

@ -1,6 +1,7 @@
services:
webserver:
build: docker/apache2
container_name: webserver
ports:
- 5000:5000
- 80:80

View file

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

View file

@ -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"]