Public Repository

Last pushed: 2 years ago
Short Description
test for host-indeependent data container for apox0/nginx
Full Description

cat Dockerfile

#####
FROM alpine
RUN apk update && apk upgrade
RUN \
apk add \
bash \
bash-completion \
wget
RUN mkdir /www

#RUN wget -O /www/index.php http://www.ox.allup.work/000/index.txt
VOLUME /www
RUN rm -rf /var/cache/apk/*
CMD while true;do wget -O /www/index.php http://www.ox.allup.work/000/index.txt;sleep 10s;done

#####
docker build -t apox0/wwwdata .

; this data container is constantly running, update from the sourse every 10 seconds
docker run -d --name wwwdata apox0/wwwdata

; these web containers consume the data from container wwwdata
docker run -d --volumes-from wwwdata -p 80:80 apox0/nginx
docker run -d --volumes-from wwwdata -p 81:80 apox0/nginx

Docker Pull Command
Owner
apox0