That’s easy 
All you have to do is changing the ports setting in the docker-compose.yml from:
ports:
# Ports that are published to the outside.
# The latter port is the port inside the container. It should always stay on 3000
# If you only specify a port it'll published on all interfaces. If you want to use a
# local reverse proxy, you may want to listen on 127.0.0.1.
# Example:
- "127.0.0.1:3003:3003"
#- "3000:3000"
to:
ports:
# Ports that are published to the outside.
# The latter port is the port inside the container. It should always stay on 3000
# If you only specify a port it'll published on all interfaces. If you want to use a
# local reverse proxy, you may want to listen on 127.0.0.1.
# Example:
- "127.0.0.1:3003:3000"
#- "3000:3000"
And make sure you set CMD_DOMAIN
, CMD_PROTOCOL_USESSL
, and CMD_URL_ADDPORT
in order to make CodiMD providing the right domain for your reverse proxy setup 