Skip to content

Commit

Permalink
[prom_img_name] adding stack name in front of prometheus container name
Browse files Browse the repository at this point in the history
#131

Signed-off-by: David Echelberger <[email protected]>
  • Loading branch information
David Echelberger committed Jan 5, 2022
1 parent e049098 commit d2e40b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/docker/docker_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func CreateDockerCompose(s *types.Stack) *DockerComposeConfig {
if s.PrometheusEnabled {
compose.Services["prometheus"] = &Service{
Image: constants.PrometheusImageName,
ContainerName: "prometheus",
ContainerName: fmt.Sprintf("%s_prometheus", s.Name),
Ports: []string{fmt.Sprintf("%d:9090", s.ExposedPrometheusPort)},
Volumes: []string{"prometheus_data:/prometheus", "prometheus_config:/etc/prometheus"},
Logging: StandardLogOptions,
Expand Down

0 comments on commit d2e40b8

Please sign in to comment.