Answers: <blockquote>
  <p><code>NETWORK=testnet docker-compose up</code></p>
  </blockquote>
  <p>This syntax is assuming a bash or similar shell. It defines an environment variable and runs the command with that variable exported. It's similar to (but not the same as) running:</p>
  <pre class="lang-shell prettyprint-override"><code>export NETWORK=testnet
  docker-compose up
  </code></pre>
  <p>Since you appear to be running this on Windows, I believe the equivalent there is:</p>
  <pre><code>set NETWORK=testnet
  docker-compose up
  </code></pre>
  
Answers: CC BY-SA 4.0
Answers: 2023-01-11T06:02:11.607Z
Answers: That makes sense now. I was also able to run the code successfully. Thank you for your help, @BMitch!
Answers: J.O.C
Answers: CC BY-SA 4.0
Answers: 2023-01-10T13:54:19.777Z
Answers: 2023-01-10T13:54:19.777Z
Answers: BMitch
Body: <p>Do you think these commands are valid?</p>
  <pre><code>wget https://raw.githubusercontent.com/input-output-hk/cardano-wallet/master/docker-compose.yml
  NETWORK=testnet docker-compose up
  </code></pre>
  <p>The first command downloads the <code>.yml</code> file. However, when I try to run the second command, node complains about <code>NETWORK=testnet</code> not being a valid. Here is the error printout:</p>
  <p><a href="https://i.sstatic.net/f2Nt5.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/f2Nt5.png" alt="enter image description here" /></a></p>
  <p>Is there anybody here who could point out what I am not understanding and make it work? The link to this particular set of commands can be found here:
  <a href="https://developers.cardano.org/docs/get-started/cardano-wallet-js/" rel="nofollow noreferrer">https://developers.cardano.org/docs/get-started/cardano-wallet-js/</a></p>
  
Comments: CC BY-SA 4.0
Comments: 2023-01-10T01:06:16.363Z
Comments: Yes, the commands are valid when run in a bash shell. Please show your actual output and errors. It's difficult to debug "something like that".
Comments: BMitch
Comments: CC BY-SA 4.0
Comments: 2023-01-10T01:52:33.550Z
Comments: Hey @BMitch, thanks for dropping by. I updated the question to include the error printout. So, basically, when I run "NETWORK=testnet docker-compose up" in a PowerShell terminal, I get an error. Your help is greatly appreciated. Thank you!
Comments: J.O.C
Comments: CC BY-SA 4.0
Comments: 2023-01-10T02:36:15.250Z
Comments: @BMitch, ahhh. Nevermind. It runs on ubuntu. However, the compose file is invalid. So, the commands work but the file is invalid. Thanks!
Comments: J.O.C
Comments: CC BY-SA 4.0
Comments: 2023-01-10T13:55:25.573Z
Comments: [Please do not upload images of code/errors when asking a question.](//meta.stackoverflow.com/q/285551)
Comments: BMitch
Tags: <docker><docker-compose>
Title: Setting the network using docker-compose
UserDisplayName: J.O.C
ThreadText: # Setting the network using docker-compose
  
  (Asked by: username_0 on 2023-01-09)
  
  Do you think these commands are valid?
  
  ```
  wget https://raw.githubusercontent.com/input-output-hk/cardano-wallet/master/docker-compose.yml
  NETWORK=testnet docker-compose up
  
  ```
  
  The first command downloads the `.yml` file. However, when I try to run the second command, node complains about `NETWORK=testnet` not being a valid. Here is the error printout:
  
  [![enter image description here](https://i.sstatic.net/f2Nt5.png)](https://i.sstatic.net/f2Nt5.png)
  
  Is there anybody here who could point out what I am not understanding and make it work? The link to this particular set of commands can be found here:
  <https://developers.cardano.org/docs/get-started/cardano-wallet-js/>
  
  **Tags:** docker, docker-compose
  
  > **Comments:**
  > **username_1**: Yes, the commands are valid when run in a bash shell. Please show your actual output and errors. It's difficult to debug "something like that".  
  > **username_0**: Hey @username_1, thanks for dropping by. I updated the question to include the error printout. So, basically, when I run "NETWORK=testnet docker-compose up" in a PowerShell terminal, I get an error. Your help is greatly appreciated. Thank you!  
  > **username_0**: @username_1, ahhh. Nevermind. It runs on ubuntu. However, the compose file is invalid. So, the commands work but the file is invalid. Thanks!  
  > **username_1**: [Please do not upload images of code/errors when asking a question.](//meta.stackoverflow.com/q/285551)  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2023-01-10. Score: 1
  
  > `NETWORK=testnet docker-compose up`
  
  This syntax is assuming a bash or similar shell. It defines an environment variable and runs the command with that variable exported. It's similar to (but not the same as) running:
  
  ```shell
  export NETWORK=testnet
  docker-compose up
  
  ```
  
  Since you appear to be running this on Windows, I believe the equivalent there is:
  
  ```
  set NETWORK=testnet
  docker-compose up
  
  ```
  
  > **Comments:**
  > **username_0**: That makes sense now. I was also able to run the code successfully. Thank you for your help, @username_1!  
  
  ---
  
  