Skip to content

Commit 9ee50fc

Browse files
authored
more docker compose cleanup (#46)
1 parent 91fc3eb commit 9ee50fc

File tree

2 files changed

+23
-15
lines changed

2 files changed

+23
-15
lines changed

cmd/httpserver/main.go

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@ var flags = []cli.Flag{
3838
EnvVars: []string{"INTERNAL_ADDR"},
3939
},
4040
&cli.StringFlag{
41-
Name: "metrics-addr",
42-
Value: "127.0.0.1:8090",
43-
Usage: "address to serve Prometheus metrics",
41+
Name: "metrics-addr",
42+
Value: "127.0.0.1:8090",
43+
Usage: "address to serve Prometheus metrics",
44+
EnvVars: []string{"METRICS_ADDR"},
4445
},
4546
&cli.BoolFlag{
4647
Name: "log-json",
@@ -49,24 +50,28 @@ var flags = []cli.Flag{
4950
EnvVars: []string{"LOG_JSON"},
5051
},
5152
&cli.BoolFlag{
52-
Name: "log-debug",
53-
Value: false,
54-
Usage: "log debug messages",
53+
Name: "log-debug",
54+
Value: false,
55+
Usage: "log debug messages",
56+
EnvVars: []string{"LOG_DEBUG"},
5557
},
5658
&cli.BoolFlag{
57-
Name: "log-uid",
58-
Value: false,
59-
Usage: "generate a uuid and add to all log messages",
59+
Name: "log-uid",
60+
Value: false,
61+
Usage: "generate a uuid and add to all log messages",
62+
EnvVars: []string{"LOG_UID"},
6063
},
6164
&cli.StringFlag{
62-
Name: "log-service",
63-
Value: "httpserver",
64-
Usage: "add 'service' tag to logs",
65+
Name: "log-service",
66+
Value: "httpserver",
67+
Usage: "add 'service' tag to logs",
68+
EnvVars: []string{"LOG_SERVICE"},
6569
},
6670
&cli.BoolFlag{
67-
Name: "pprof",
68-
Value: false,
69-
Usage: "enable pprof debug endpoint",
71+
Name: "pprof",
72+
Value: false,
73+
Usage: "enable pprof debug endpoint",
74+
EnvVars: []string{"PPROF"},
7075
},
7176
&cli.Int64Flag{
7277
Name: "drain-seconds",

docker/docker-compose.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ services:
1818
environment:
1919
POSTGRES_DSN: "postgres://postgres:postgres@db:5432/postgres?sslmode=disable"
2020
LISTEN_ADDR: "0.0.0.0:8080"
21+
ADMIN_ADDR: "0.0.0.0:8081"
22+
INTERNAL_ADDR: "0.0.0.0:8082"
23+
METRICS_ADDR: "0.0.0.0:8090"
2124

2225
proxy:
2326
image: flashbots/builder-hub-mock-proxy

0 commit comments

Comments
 (0)