Skip to content

Commit fddf4ab

Browse files
committed
Adding support for automatically set hostname on the web container
Resolves: #1
1 parent 0b81e48 commit fddf4ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/dup.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ proc startWeb(project: string, portMapping: string, folderMapping: string = "",
125125
env = buildEnv(env)
126126
link = if hasDB: "--link " & project & "-db:db " else: ""
127127
folder = if folderMapping == "": "-v $PWD/code:/var/www " else: "-v $PWD/" & folderMapping & " "
128-
command = "docker run -d --name " & project & "-web -p " & portMapping & " " & env & folder & link & " -e TERM=xterm-256color -e VIRTUAL_HOST=" & project & ".docker " & project & ":latest"
128+
command = "docker run -d -h " & project & ".docker --name " & project & "-web -p " & portMapping & " " & env & folder & link & " -e TERM=xterm-256color -e VIRTUAL_HOST=" & project & ".docker " & project & ":latest"
129129
exitCode = execCmd command
130130
if exitCode != 0:
131131
echo("Error: Starting web server failed. Check the output above.")

0 commit comments

Comments
 (0)