diff options
| -rw-r--r-- | Makefile | 9 | ||||
| -rw-r--r-- | docker-compose.local.yml | 13 |
2 files changed, 22 insertions, 0 deletions
@@ -19,3 +19,12 @@ serve: .PHONY: clean clean: docker-compose down + +.PHONY: local_up +local_up: + docker-compose -f docker-compose.local.yml up -d + echo http://localhost:8080 + +.PHONY: local_down +local_down: + docker-compose -f docker-compose.local.yml down diff --git a/docker-compose.local.yml b/docker-compose.local.yml new file mode 100644 index 0000000..d082169 --- /dev/null +++ b/docker-compose.local.yml @@ -0,0 +1,13 @@ +version: '3' + +services: + blog_nsfisis_nginx: + image: nginx + volumes: + - ./nginx.conf:/etc/nginx/conf.d/default.conf + - ./docs:/public + ports: + - 80:80 + environment: + TZ: Asia/Tokyo + restart: always |
