Kai Hendry
2015-10-10 17:16:10 +08:00
parent 91873208b7
commit 968c4a9e47
2 changed files with 2 additions and 1 deletions

View File

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

View File

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