Docs: Explain how to set port in Docker (#6181)
This commit is contained in:
		
							parent
							
								
									04b9aa49a8
								
							
						
					
					
						commit
						d2c3b31902
					
				@ -101,6 +101,19 @@ This is stored in two different repositories:
 | 
				
			|||||||
    docker run motoserver/moto:latest
 | 
					    docker run motoserver/moto:latest
 | 
				
			||||||
    docker run ghcr.io/getmoto/motoserver:latest
 | 
					    docker run ghcr.io/getmoto/motoserver:latest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Example docker-compose.yaml 
 | 
				
			||||||
 | 
					 Look at `server.py <https://github.com/getmoto/moto/blob/master/moto/server.py>`_ to find more environment variables.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.. code-block:: yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  motoserver:
 | 
				
			||||||
 | 
					    image: motoserver/moto:latest
 | 
				
			||||||
 | 
					    ports:
 | 
				
			||||||
 | 
					      - "3000:3000"
 | 
				
			||||||
 | 
					    environment:
 | 
				
			||||||
 | 
					      - MOTO_PORT=3000 # set moto listener port with env var
 | 
				
			||||||
 | 
					   
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Example Usage
 | 
					Example Usage
 | 
				
			||||||
--------------
 | 
					--------------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user