-
Notifications
You must be signed in to change notification settings - Fork 39
/
Makefile
35 lines (30 loc) · 895 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
default: build
# Run `make build` to build a production container
build:
cp .docker/Dockerfile-PROD Dockerfile
docker build -t elefant .
rm Dockerfile
# Run `make dev` to build a development container
dev:
cp .docker/Dockerfile-DEV Dockerfile
docker build -t elefant-dev .
rm Dockerfile
# Run `make worker` to build a worker container
worker:
cp .docker/Dockerfile-WORKER Dockerfile
docker build -t elefant-worker .
rm Dockerfile
# Run `make run` to spin up a development environment
run:
docker-compose up -d
# Run `make down` to spin down a development environment
down:
docker-compose down
# Run `make local-cert DOMAIN=www.elefant.lo` to generate an SSL certificate
# for your development environment. Note: Requires mkcert
DOMAIN=www.elefant.lo
export DOMAIN
local-cert:
mkcert -cert-file .docker/certs/$(DOMAIN).crt \
-key-file .docker/certs/$(DOMAIN).key \
$(DOMAIN)