From 968c4a9e47864a2ec6d69d087a02a9a40527038e Mon Sep 17 00:00:00 2001 From: Kai Hendry Date: Sat, 10 Oct 2015 17:16:10 +0800 Subject: [PATCH] Experimenting with https://github.com/allinurl/goaccess/issues/311#issuecomment-147067909 --- Dockerfile | 1 + Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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)