Skip to content

Commit

Permalink
Docs: Explain how to set port in Docker (#6181)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakmeena635 authored Apr 10, 2023
1 parent 04b9aa4 commit d2c3b31
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/docs/server_mode.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
--------------

Expand Down

0 comments on commit d2c3b31

Please sign in to comment.