# When Mining, please utilize a local gateway

**URL:** <https://community.creditcoin.org/t/when-mining-please-utilize-a-local-gateway/431>\
**Category:** Mining\
**Created:** [November 2, 2021, 9:07pm UTC](https://community.creditcoin.org/t/when-mining-please-utilize-a-local-gateway/431 "2021-11-02T21:07:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CreditForEveryone](https://avatars.discourse-cdn.com/v4/letter/c/e0b2c6/32.png) [@CreditForEveryone](https://community.creditcoin.org/u/CreditForEveryone)\
**Post date:** [November 2, 2021, 9:07pm UTC](https://community.creditcoin.org/t/when-mining-please-utilize-a-local-gateway/431/1 "2021-11-02T21:07:07Z")

</div>

General Announcement to Creditcoin Miners: The Creditcoin Foundation suggests that you please utilize a local gateway rather than a global gateway as it is generally more efficient. We are constantly working to improve stability and performance. More info can be found here:  
[https://github.com/gluwa/CreditcoinDockerCompose-Mainnet/blob/dev/Server/docker-compose.yaml](https://github.com/gluwa/CreditcoinDockerCompose-Mainnet/blob/dev/Server/docker-compose.yaml)

---

<div class="post-metadata">

**Author:** ![ccrpt](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.creditcoin.org/ccrpt/32/314_2.png) [@ccrpt](https://community.creditcoin.org/u/ccrpt)\
**Post date:** [November 2, 2021, 11:53pm UTC](https://community.creditcoin.org/t/when-mining-please-utilize-a-local-gateway/431/2 "2021-11-02T23:53:27Z")

</div>

What is the difference between the local and global gateway? I can’t find the difference with the docker\_compose.yaml you linked and my docker\_compose.yaml. If it’s not different from the docker compose file, is there no need to do anything?

---

<div class="post-metadata">

**Author:** ![will\_gluwa](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.creditcoin.org/will_gluwa/32/9_2.png) [@will\_gluwa](https://community.creditcoin.org/u/will_gluwa)\
**Post date:** [November 4, 2021, 6:09pm UTC](https://community.creditcoin.org/t/when-mining-please-utilize-a-local-gateway/431/3 "2021-11-04T18:09:16Z")

</div>

A long time ago, the entrypoint for processor was, by default, pointing to the shared Gateway (`tcp://creditcoin-gateway.gluwa.com:55555`) instead of a locally running version.

In that version of the docker-compose.yaml file, there was no gateway section in the docker-compose.yaml file and instead of:  
`./ccprocessorLinux.out tcp://validator:4004 tcp://gateway:55555 http://rest-api:8008`

It showed:  
`./ccprocessorLinux.out tcp://validator:4004 tcp://creditcoin-gateway.gluwa.com:55555 http://rest-api:8008`

If your docker-compose file contains the gateway section, and their processor section doesn’t reference tcp://creditcoin-gateway.gluwa.com:55555 they’re not affected by this.

Here’s an example of what the Gateway section should look like:

````auto
    image: gluwa/creditcoin-gateway:1.7
    container_name: creditcoin-gateway
    expose:
      - 55555
    ports:
      - 55555:55555
    secrets:
     - source: gateway_config
       target: /home/Creditcoin/Gateway/appsettings.json
    entrypoint: ./ccgateway
    stop_signal: SIGKILL
    logging:
        driver: "json-file"
        options:
            max-file: "5"
            max-size: "10m"```
````
