build: isolate go module proxy setting
This commit is contained in:
@@ -45,13 +45,15 @@ services:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
GOPROXY: ${GOPROXY:-https://goproxy.cn,direct}
|
||||
GOPROXY: ${GO_MODULE_PROXY:-https://goproxy.cn,direct}
|
||||
HTTP_PROXY: ${HTTP_PROXY:-}
|
||||
HTTPS_PROXY: ${HTTPS_PROXY:-}
|
||||
NO_PROXY: ${NO_PROXY:-}
|
||||
http_proxy: ${HTTP_PROXY:-}
|
||||
https_proxy: ${HTTPS_PROXY:-}
|
||||
no_proxy: ${NO_PROXY:-}
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
container_name: crypto-hermes-market-gateway
|
||||
depends_on:
|
||||
postgres:
|
||||
@@ -73,6 +75,8 @@ services:
|
||||
volumes:
|
||||
- ./config:/app/config:ro
|
||||
- ./logs:/app/logs
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
# SIGTERM → 等 app 内置 10s graceful shutdown(fiber.ShutdownWithContext)
|
||||
# + cron 任务结束的缓冲 = 30s。超时后 docker 发 SIGKILL。
|
||||
stop_grace_period: 30s
|
||||
|
||||
Reference in New Issue
Block a user