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

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

push:
	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}:8080:8080 \
		--name ${APP} --net ${APP} ${TAG}

restart: stop start