Docs: Explain how to set port in Docker (#6181)

This commit is contained in:
DEEPAK MEENA 2023-04-10 21:15:13 +05:30 committed by GitHub
parent 04b9aa49a8
commit d2c3b31902
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,6 +101,19 @@ This is stored in two different repositories:
docker run motoserver/moto: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
--------------