-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Adds `docker.toml` with working values - Container layout uses /bin, /etc now - Adds docker-compose - Uses docker-ignore to reduce build context size
- Loading branch information
1 parent
16ac6d5
commit e15cbb3
Showing
4 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Let's only send the bits we need, no matter how cluttered the develompent | ||
# folder gets. Ignore everything, then un-ignore critical files. | ||
* | ||
!*.go | ||
!/go.* | ||
!/docker.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: "3.8" | ||
services: | ||
proxy: | ||
build: | ||
context: . | ||
cache_from: | ||
- "golang:1.13-alpine" | ||
image: devproxy2 | ||
ports: | ||
- "8111:8111" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Default configuration used by the Dockerfile. | ||
[listen] | ||
# Don't actually listen on 'localhost'. It's a secure default for a host | ||
# system, but in Docker, it prevents connections to the exposed port. | ||
address = "" | ||
|
||
[servers.local] | ||
# Since "localhost" is the container, we use "host.docker.internal" to get to | ||
# the actual host machine (requires Docker 18.03+ on Windows or Mac, or | ||
# Docker 20.10+ on Linux) | ||
address = "host.docker.internal" | ||
http_port = 8080 | ||
https_port = 8443 | ||
|
||
[[rules]] | ||
match_host = '\bexample\.\w+$' | ||
match_port = '^80$' | ||
send_to = "local" |