Sign inSign up

apox0/wwwdata

By apox0

•Updated over 10 years ago

test for host-indeependent data container for apox0/nginx

Image
0

907

apox0/wwwdata repository overview

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

Tag summary

Content type

Image

Digest

Size

5.1 MB

Last updated

over 10 years ago

docker pull apox0/wwwdata