How to set port to run static website as nginx docker container?

I’m trying to run a static website using docker and nginx. I’m also using jwilder/nginx-proxy. But calling https://www.example.com returns me a 502 error.
I think it is a problem with setting the port correctly, but I do not see my mistake.

This is my Dockerfile…

FROM nginx:alpine
COPY . /usr/share/nginx/html

EXPOSE 3499

…and this is how I configured my gitlab ci:

build:
  stage: build
  image: docker:stable
  script:
    - docker build -t ${DOCKER_CONTAINER}:latest .

production:
  stage: release
  image: docker:stable
  variables:
    GIT_STRATEGY: none
  script:
    - docker run
      --name ${DOCKER_CONTAINER}
      --detach
      --restart=always
      -e VIRTUAL_HOST=www.example.com
      -e LETSENCRYPT_HOST=www.example.com
      -p 3499
      ${DOCKER_CONTAINER}:latest
  environment:
    name: production
    url: https://www.example.com

Source: StackOverflow