내부 포트 고정
This commit is contained in:
@@ -27,7 +27,7 @@ func main() {
|
||||
dbPath := env("GEOIP_DB_PATH", defaultDBPath)
|
||||
dbURL := os.Getenv("DATABASE_URL")
|
||||
lookupQuery := os.Getenv("GEOIP_LOOKUP_QUERY")
|
||||
port := env("SERVICE_PORT", defaultPort)
|
||||
port := env("PORT", defaultPort)
|
||||
|
||||
resolver, err := geo.NewResolver(geo.Config{
|
||||
Backend: backend,
|
||||
|
||||
@@ -13,7 +13,7 @@ services:
|
||||
ports:
|
||||
- "${SERVICE_PORT:-8080}:8080"
|
||||
environment:
|
||||
- SERVICE_PORT=${SERVICE_PORT:-8080}
|
||||
- PORT=8080
|
||||
- GEOIP_DB_PATH=${GEOIP_DB_PATH:-/initial_data/GeoLite2-City.mmdb}
|
||||
- GEOIP_BACKEND=${GEOIP_BACKEND:-mmdb}
|
||||
- GEOIP_LOADER_TIMEOUT=${GEOIP_LOADER_TIMEOUT:-30m}
|
||||
|
||||
Reference in New Issue
Block a user