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.name = fmt.Sprintf("localenv-%s", MailhogServiceName) | ||||||
| 	nx.spec = nx.getServiceSpec( | 	nx.spec = nx.getServiceSpec( | ||||||
| 		WithIONetwork(), | 		WithMSNetwork(), | ||||||
| 		WithRestartPolicy(), | 		WithRestartPolicy(), | ||||||
| 	) | 	) | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -26,7 +26,7 @@ func NewNginx() Nginx { | |||||||
| 
 | 
 | ||||||
| 	nx.name = fmt.Sprintf("localenv-%s", NginxServiceName) | 	nx.name = fmt.Sprintf("localenv-%s", NginxServiceName) | ||||||
| 	nx.spec = nx.getServiceSpec( | 	nx.spec = nx.getServiceSpec( | ||||||
| 		WithIONetwork(), | 		WithMSNetwork(), | ||||||
| 		WithHostEndpoint(NginxServicePort), | 		WithHostEndpoint(NginxServicePort), | ||||||
| 		WithRestartPolicy(), | 		WithRestartPolicy(), | ||||||
| 	) | 	) | ||||||
|  | |||||||
| @ -28,7 +28,7 @@ func NewRabbitMQ() RabbitMQ { | |||||||
| 
 | 
 | ||||||
| 	rq.name = fmt.Sprintf("localenv-%s", RabbitMQServiceName) | 	rq.name = fmt.Sprintf("localenv-%s", RabbitMQServiceName) | ||||||
| 	rq.spec = rq.getServiceSpec( | 	rq.spec = rq.getServiceSpec( | ||||||
| 		WithIONetwork(), | 		WithMSNetwork(), | ||||||
| 		WithHostEndpoint(RabbitMQServiceManagementPort), | 		WithHostEndpoint(RabbitMQServiceManagementPort), | ||||||
| 		WithRestartPolicy(), | 		WithRestartPolicy(), | ||||||
| 	) | 	) | ||||||
|  | |||||||
| @ -25,7 +25,7 @@ var ( | |||||||
| 
 | 
 | ||||||
| type ServiceOption func(spec *swarm.ServiceSpec) | type ServiceOption func(spec *swarm.ServiceSpec) | ||||||
| 
 | 
 | ||||||
| func WithIONetwork() ServiceOption { | func WithMSNetwork() ServiceOption { | ||||||
| 	return WithNetwork(NetworkName) | 	return WithNetwork(NetworkName) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 rmanach
						rmanach