-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
32 lines (26 loc) · 929 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
all:
@echo "*****************************************************************"
@echo "** ETHGas Build Tool **"
@echo "*****************************************************************"
##
## Docker
##
docker-build-api:
docker build -f Dockerfile.api -t ethgas/api .
docker-build-webapp:
docker build -f Dockerfile.webapp -t ethgas/webapp .
docker-run-api:
docker run --name ethgas-api -d -e VIRTUAL_HOST=api.ethgas.app \
-p 4444:4444 -v /etc/ethgas.conf:/etc/ethgas.conf \
--log-opt max-size=100m --log-opt max-file=5 \
ethgas/api
docker-run-webapp:
docker run --name ethgas-webapp -d \
-e VIRTUAL_HOST=ethgas.app \
-p 5555:80 \
--log-opt max-size=100m --log-opt max-file=5 \
ethgas/webapp
docker-run-nginx:
docker run -d --name=nginx -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock \
--log-opt max-size=100m --log-opt max-file=5 \
nginxproxy/nginx-proxy