How does docker’s command line become a docker-compose file?

  docker, question

For example:

Docker run -d --restart=always -p-p port a: port b odrationale/dock-shadow socks-s0.0.0-p port B -k password -m aes-256-cfb

Configuration list

I now write

docker-compose.yml

version: "3"
 services:
 shadowsocks:
 image: oddrationale/docker-shadowsocks
 ports:
 - "2333:2333"
 restart: always

How to write the remaining parameters?

version: "2"
 services:
 shadowsocks:
 container_name: shadowsocks
 image: oddrationale/docker-shadowsocks
 ports:
 - "1984:1984"
 restart: always
 Command: -s 0.0.0.0 -p 1984 -k password -m aes-256-cfb