diff options
| -rw-r--r-- | Makefile | 21 | ||||
| -rw-r--r-- | docker-compose.yml | 18 | ||||
| -rw-r--r-- | nginx.conf | 10 |
3 files changed, 49 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f396c9e --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +.PHONY: all +all: deploy + +.PHONY: deploy +deploy: build serve + +.PHONY: setup +setup: + true + +.PHONY: build +build: + docker-compose build + +.PHONY: serve +serve: + docker-compose up -d + +.PHONY: clean +clean: + docker-compose down diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..7151b77 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,18 @@ +version: '3' + +services: + blog_nsfisis_nginx: + image: nginx + volumes: + - ./nginx.conf:/etc/nginx/conf.d/default.conf + - ./docs:/public + expose: + - 80 + environment: + TZ: Asia/Tokyo + restart: always + +networks: + default: + external: + name: nsfisis_dev_shared diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..12fcd32 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,10 @@ +server { + listen 80 default; + listen [::]:80; + + location / { + root /public; + } + + error_page 404 /404.html; +} |
