user151: The dockerized version of cardano-node version 1.35.3 connects to the mainnet by default. We wish to connect the node to the new pre-production or preview testnets. It isn't made clear in any documentation how to accomplish this.
For reference, I'm referring to this image: https://hub.docker.com/r/inputoutput/cardano-node
This is related to What are the valid NETWORK values for docker node images?

user7460: A solution, involving setting up a new docker image, can be found here: https://cardano.stackexchange.com/a/8940/7460

user151: Here's how I solved it:
Get the config files from here: https://book.world.dev.cardano.org/environments/preprod/
Place the config files in $PWD/config/docker_configs/preprod where $PWD is the dir containing your compose.
docker-compose.yml
  cardano-node-testnet:
    image: inputoutput/cardano-node:1.35.3
    container_name: cardano_node_testnet
    volumes:
      - node-testnet-db:/data/db
      - node-ipc:/ipc
      - $PWD/config/docker_configs/preprod:/config
    command:
      - run
      - --config /config/config.json
      - --topology /config/topology.json
      - --database-path /data/db
      - --socket-path /ipc/node.socket
    restart: on-failure
    healthcheck:
      # Ping the EKG port to see if it responds.
      # Assuming if EKG isn't up then the rest of cardano-node isn't either.
      test: [ "CMD-SHELL", "curl -f 127.0.0.1:12788 || exit 1" ]
      interval: 60s
      timeout: 10s
      retries: 5
    logging:
      driver: "json-file"
      options:
        compress: "true"
        max-file: "10"
        max-size: "50m"

Thanks to adamuso on the iohk discord for the help.

151: <p>The dockerized version of <code>cardano-node</code> version <code>1.35.3</code> connects to the mainnet by default. We wish to connect the node to the new pre-production or preview testnets. It isn't made clear in any documentation how to accomplish this.</p>
<p>For reference, I'm referring to this image: <a href="https://hub.docker.com/r/inputoutput/cardano-node" rel="nofollow noreferrer">https://hub.docker.com/r/inputoutput/cardano-node</a></p>
<p>This is related to <a href="https://cardano.stackexchange.com/questions/8937/what-are-the-valid-network-values-for-docker-node-images">What are the valid NETWORK values for docker node images?</a></p>
 7460: <p>A solution, involving setting up a new docker image, can be found here: <a href="https://cardano.stackexchange.com/a/8940/7460">https://cardano.stackexchange.com/a/8940/7460</a></p>
 151: <p>Here's how I solved it:</p>
<p>Get the config files from here: <a href="https://book.world.dev.cardano.org/environments/preprod/" rel="nofollow noreferrer">https://book.world.dev.cardano.org/environments/preprod/</a></p>
<p>Place the config files in <code>$PWD/config/docker_configs/preprod</code> where <code>$PWD</code> is the dir containing your compose.</p>
<p><strong>docker-compose.yml</strong></p>
<pre><code>  cardano-node-testnet:
    image: inputoutput/cardano-node:1.35.3
    container_name: cardano_node_testnet
    volumes:
      - node-testnet-db:/data/db
      - node-ipc:/ipc
      - $PWD/config/docker_configs/preprod:/config
    command:
      - run
      - --config /config/config.json
      - --topology /config/topology.json
      - --database-path /data/db
      - --socket-path /ipc/node.socket
    restart: on-failure
    healthcheck:
      # Ping the EKG port to see if it responds.
      # Assuming if EKG isn't up then the rest of cardano-node isn't either.
      test: [ &quot;CMD-SHELL&quot;, &quot;curl -f 127.0.0.1:12788 || exit 1&quot; ]
      interval: 60s
      timeout: 10s
      retries: 5
    logging:
      driver: &quot;json-file&quot;
      options:
        compress: &quot;true&quot;
        max-file: &quot;10&quot;
        max-size: &quot;50m&quot;
</code></pre>
<p>Thanks to adamuso on the iohk discord for the help.</p>
