title: Portainer - how to specify SSL in docker-compose.yml?
body: <p>I'm trying to deploy an instance of Portainer to a docker swarm.  I'm not sure how to set the correct flag to enable SSL.</p>
  
  <p>From the docs:</p>
  
  <pre><code>$ docker run -d -p 443:9000 --name portainer --restart always -v ~/local-certs:/certs -v portainer_data:/data portainer/portainer --ssl --sslcert /certs/portainer.crt --sslkey /certs/portainer.key
  </code></pre>
  
  <p><a href="https://portainer.readthedocs.io/en/stable/deployment.html" rel="nofollow noreferrer">https://portainer.readthedocs.io/en/stable/deployment.html</a></p>
  
  <p>But how do you translate that into a docker compose yml file?</p>