diff options
| author | nsfisis <nsfisis@gmail.com> | 2022-10-26 19:24:38 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2022-10-26 19:24:38 +0900 |
| commit | fa24c3c8b1922cbd5bbf330c45f5788c08d1cb43 (patch) | |
| tree | f4f18d3ac12c0478ac14d62fb21bf0c54ce91b6a /Makefile | |
| parent | b858652701f0db69d2a7ffa3d1d674b3cc263ae0 (diff) | |
| download | nsfisis.dev-fa24c3c8b1922cbd5bbf330c45f5788c08d1cb43.tar.gz nsfisis.dev-fa24c3c8b1922cbd5bbf330c45f5788c08d1cb43.tar.zst nsfisis.dev-fa24c3c8b1922cbd5bbf330c45f5788c08d1cb43.zip | |
setup docker
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..fe0d95bf --- /dev/null +++ b/Makefile @@ -0,0 +1,33 @@ +.PHONY: all +all: deploy + +.PHONY: deploy +deploy: build serve + +.PHONY: setup +setup: certbot + cd vhosts/blog; make setup + +.PHONY: build +build: + docker-compose build + cd vhosts/blog; make build + +.PHONY: serve +serve: .nsfisis_dev_shared_network + docker-compose up -d + cd vhosts/blog; make serve + +.PHONY: clean +clean: + cd vhosts/blog; make clean + docker-compose down + docker network ls | grep nsfisis_dev_shared > /dev/null && docker network rm nsfisis_dev_shared + +.PHONY: .nsfisis_dev_shared_network +.nsfisis_dev_shared_network: + docker network ls | grep nsfisis_dev_shared > /dev/null || docker network create nsfisis_dev_shared + +.PHONY: certbot +certbot: + docker-compose run --rm certbot certonly --webroot -w /var/letsencrypt/www -d nsfisis.dev,blog.nsfisis.dev |
