aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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