Skip to content
This repository was archived by the owner on Mar 4, 2019. It is now read-only.

Commit 40d29bb

Browse files
committed
Improving docker.sh
1 parent 41fcf66 commit 40d29bb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

install/docker.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,13 @@ $docker commit $container $image
103103
$docker rm $container
104104

105105
### run the new image and create a container
106+
http_port=${http_port:-80}
107+
https_port=${https_port:-443}
108+
sshd_port=${sshd_port:-2201}
106109
$docker run --name=$target -d \
107-
-p 80:80 -p 443:443 -p 2201:2201 \
110+
-p $http_port:80 -p $https_port:443 -p $sshd_port:2201 \
111+
-v $source_dir:$code_dir \
108112
$image /usr/bin/supervisord -c /etc/supervisor/supervisord.conf --nodaemon
109-
# -p $sshd_port:$sshd_port -p $httpd_port:$httpd_port \
110113

111114
### start the container on boot
112115
if [ "$start_on_boot" = 'true' ]

0 commit comments

Comments
 (0)