Skip to content

Commit

Permalink
fix: listen to all internal interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
FinalAngel committed Apr 25, 2024
1 parent 8659386 commit 9b0fadb
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN go mod download

COPY . /app

RUN CGO_ENABLED=0 GOOS=linux go build main.go
RUN CGO_ENABLED=0 GOOS=linux go build -o main

EXPOSE 80

Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ services:
ports:
- "8000:80"
volumes:
- ".:/app:rw"
- "./data:/data:rw"
Binary file removed main
Binary file not shown.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ func handler(w http.ResponseWriter, r *http.Request) {

func main() {
http.HandleFunc("/", handler)
log.Fatal(http.ListenAndServe(":80", nil))
log.Fatal(http.ListenAndServe("0.0.0.0:80", nil))
}

0 comments on commit 9b0fadb

Please sign in to comment.