fix network naming

This commit is contained in:
rmanach 2023-08-08 10:56:22 +02:00
parent d9ce80beb1
commit 876c211cd1
4 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@ func NewMailhog() Mailhog {
nx.name = fmt.Sprintf("localenv-%s", MailhogServiceName)
nx.spec = nx.getServiceSpec(
WithIONetwork(),
WithMSNetwork(),
WithRestartPolicy(),
)

View File

@ -26,7 +26,7 @@ func NewNginx() Nginx {
nx.name = fmt.Sprintf("localenv-%s", NginxServiceName)
nx.spec = nx.getServiceSpec(
WithIONetwork(),
WithMSNetwork(),
WithHostEndpoint(NginxServicePort),
WithRestartPolicy(),
)

View File

@ -28,7 +28,7 @@ func NewRabbitMQ() RabbitMQ {
rq.name = fmt.Sprintf("localenv-%s", RabbitMQServiceName)
rq.spec = rq.getServiceSpec(
WithIONetwork(),
WithMSNetwork(),
WithHostEndpoint(RabbitMQServiceManagementPort),
WithRestartPolicy(),
)

View File

@ -25,7 +25,7 @@ var (
type ServiceOption func(spec *swarm.ServiceSpec)
func WithIONetwork() ServiceOption {
func WithMSNetwork() ServiceOption {
return WithNetwork(NetworkName)
}