Gaia Docker port problem

I’ve ran docker by “docker stack deploy” but the ports didn’t open.
What else should I do?

  gaiad:
    image: tendermint/gaia:v2.0.4
    restart: unless-stopped
    volumes:
      - ~/.gaiad:/root/.gaiad
      - ~/.gaiacli:/root/.gaiacli
    command: gaiad start
    ports:
      - 26657:26657
      - 26656:26656
  gaiacli:
    image: tendermint/gaia:v2.0.4
    restart: unless-stopped
    volumes:
      - ~/.gaiad:/root/.gaiad
      - ~/.gaiacli:/root/.gaiacli
    links:
      - gaiad
    command: gaiacli rest-server --chain-id=pcoin-chain \
      --laddr=tcp://localhost:1317 \
      --node=tcp://gaiad:26657 \
      --trust-node=true \
      --trace
    ports:
      - 4713:1317