aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 15549729bb78202455dfe819614887a5f9ec795b (plain)
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
IP=192.168.243.5
APP=goxy
TAG=registry.moccu/${APP}

build:
	docker build --tag ${TAG} --rm --no-cache .

push: build
	docker push ${TAG}

volume:
	docker volume create --name ${APP}

network:
	docker network create ${APP}

stop:
	docker stop ${APP}
	docker rm ${APP}

start:
	docker run -d -v ${APP}:/go/src/dim13.org/goxy/data \
		-p ${IP}:80:80 -p ${IP}:443:443 -p ${IP}:8000:8000 \
		--name ${APP} --net ${APP} --restart unless-stopped ${TAG}

restart: stop start

logs:
	docker logs -f ${APP}