diff --git a/Dockerfile b/Dockerfile index 457ecdb..c59bc55 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,6 +22,7 @@ ADD nginx.ini /etc/supervisor.d/nginx.ini RUN mkdir -p /srv/http/u VOLUME /srv/http/u/ VOLUME /srv/http/ +VOLUME /var/log/nginx EXPOSE 80 diff --git a/Makefile b/Makefile index 5e9bf3d..07485f3 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ build: docker build -t $(REPO) . start: - docker run -d --name $(NAME) -v /mnt/2tb/greptweet/:/srv/http/u -v $(PWD)/www:/srv/http/ -p 81:80 $(REPO) + docker run -d --name $(NAME) -v /mnt/2tb/greptweet/:/srv/http/u -v $(PWD)/www:/srv/http/ -v $(PWD)/logs:/var/log/nginx/ -p 81:80 $(REPO) stop: docker stop $(NAME)