aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2022-11-17 22:33:51 +0900
committernsfisis <nsfisis@gmail.com>2022-11-17 22:33:51 +0900
commit939e1bef306e6a5c3e8d67bf278c68f63193f744 (patch)
treeeb0fa56d4ff3148cb03ccf1f8ea1b18c2894e904
parentf22c42cb9169df8ccc897dbea6e735080349f3e4 (diff)
downloadblog.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--Makefile9
-rw-r--r--docker-compose.local.yml13
2 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f396c9e..befc090 100644
--- a/Makefile
+++ b/Makefile
@@ -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