From d2c3b3190229158f5cbf0d70d3a22d7d98fc932f Mon Sep 17 00:00:00 2001 From: DEEPAK MEENA <37202245+deepakmeena635@users.noreply.github.com> Date: Mon, 10 Apr 2023 21:15:13 +0530 Subject: [PATCH] Docs: Explain how to set port in Docker (#6181) --- docs/docs/server_mode.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/docs/server_mode.rst b/docs/docs/server_mode.rst index e03c8420f..018fd8d04 100644 --- a/docs/docs/server_mode.rst +++ b/docs/docs/server_mode.rst @@ -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 `_ 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 --------------