fix network naming
This commit is contained in:
		
							parent
							
								
									d9ce80beb1
								
							
						
					
					
						commit
						876c211cd1
					
				| @ -24,7 +24,7 @@ func NewMailhog() Mailhog { | ||||
| 
 | ||||
| 	nx.name = fmt.Sprintf("localenv-%s", MailhogServiceName) | ||||
| 	nx.spec = nx.getServiceSpec( | ||||
| 		WithIONetwork(), | ||||
| 		WithMSNetwork(), | ||||
| 		WithRestartPolicy(), | ||||
| 	) | ||||
| 
 | ||||
|  | ||||
| @ -26,7 +26,7 @@ func NewNginx() Nginx { | ||||
| 
 | ||||
| 	nx.name = fmt.Sprintf("localenv-%s", NginxServiceName) | ||||
| 	nx.spec = nx.getServiceSpec( | ||||
| 		WithIONetwork(), | ||||
| 		WithMSNetwork(), | ||||
| 		WithHostEndpoint(NginxServicePort), | ||||
| 		WithRestartPolicy(), | ||||
| 	) | ||||
|  | ||||
| @ -28,7 +28,7 @@ func NewRabbitMQ() RabbitMQ { | ||||
| 
 | ||||
| 	rq.name = fmt.Sprintf("localenv-%s", RabbitMQServiceName) | ||||
| 	rq.spec = rq.getServiceSpec( | ||||
| 		WithIONetwork(), | ||||
| 		WithMSNetwork(), | ||||
| 		WithHostEndpoint(RabbitMQServiceManagementPort), | ||||
| 		WithRestartPolicy(), | ||||
| 	) | ||||
|  | ||||
| @ -25,7 +25,7 @@ var ( | ||||
| 
 | ||||
| type ServiceOption func(spec *swarm.ServiceSpec) | ||||
| 
 | ||||
| func WithIONetwork() ServiceOption { | ||||
| func WithMSNetwork() ServiceOption { | ||||
| 	return WithNetwork(NetworkName) | ||||
| } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 rmanach
						rmanach