修复docker构建的问题
This commit is contained in:
1 parent
8700321af6
commit
f60b416949
6 files changed
+76
-20
No files matched your search
@@ -3,6 +3,10 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
# Non-secret build setting. Override when this host cannot reach the
|
||||
# official proxy; keep Go's checksum verification enabled.
|
||||
GOPROXY: "${FIRE_SAFETY_BUILD_GOPROXY:-https://proxy.golang.org,direct}"
|
||||
image: fire-safety-ymd:test
|
||||
container_name: fire-safety-ymd
|
||||
restart: unless-stopped
|
||||
@@ -12,6 +16,9 @@ services:
|
||||
# The host binding below keeps this port private; the process must bind
|
||||
# all container interfaces for Docker's loopback publish to work.
|
||||
FIRE_SAFETY_HTTP_ADDR: ":8080"
|
||||
# This setting is consumed only while resolving the build arg above.
|
||||
# Do not retain the selected proxy URL in the runtime environment.
|
||||
FIRE_SAFETY_BUILD_GOPROXY: ""
|
||||
# A one-off owner/migration credential must never enter the long-lived
|
||||
# application container, even if an operator left it in the local file.
|
||||
FIRE_SAFETY_POSTGIS_MIGRATION_DSN: ""
|
||||
|
||||
Reference in new issue
Block a user