diff options
| author | nsfisis <nsfisis@gmail.com> | 2022-11-17 22:33:51 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2022-11-17 22:33:51 +0900 |
| commit | 939e1bef306e6a5c3e8d67bf278c68f63193f744 (patch) | |
| tree | eb0fa56d4ff3148cb03ccf1f8ea1b18c2894e904 | |
| parent | f22c42cb9169df8ccc897dbea6e735080349f3e4 (diff) | |
| download | blog.nsfisis.dev-939e1bef306e6a5c3e8d67bf278c68f63193f744.tar.gz blog.nsfisis.dev-939e1bef306e6a5c3e8d67bf278c68f63193f744.tar.zst blog.nsfisis.dev-939e1bef306e6a5c3e8d67bf278c68f63193f744.zip | |
dev: add local_up/local_down task
| -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 |
