hello to all, has anyone of you had the need to mo...
# general
e
hello to all, has anyone of you had the need to modify the bridge network generated by compose? 172.18.0.0 0.0 255.255.0.0 U 0 0 0 br-xxxxx
p
Hey @User! For changing the subnet globally, you can set
default-address-pools
in daemon.json file. You can find the file in either
~/.docker/daemon.json
or
/etc/docker/daemon.json
.
Copy code
{
  "debug": true,
  "default-address-pools": [
    {
      "base": "172.31.0.0/16",
      "size": 24
    }
  ]
}
In case you want to set it for just one compose YAML, you can include the following
networks
configuration in the SigNoz
docker-compose.yaml
.
Copy code
version: "2.4"

networks:
  default:
    driver: bridge
    ipam:
      driver: default
      config:
        - subnet: 10.210.0.0/16
          gateway: 10.210.0.1

...
Let me know if this helps. 🙂
e
Hi @User and thanks for the help. I have already tried both, with the first one I get this error: Waiting for all containers to start. This check will timeout in 1 seconds .... +++++++++++ ERROR ++++++++++++++++++++++ 🔴 The containers didn't seem to start correctly. Please run the following command to check containers that may have errored out: sudo docker-compose -f docker/clickhouse-setup/docker-compose.yaml ps -a
and with the second:
ERROR: The Compose file '././docker/clickhouse-setup/docker-compose.yaml' is invalid because: Unsupported config option for services.networks: 'default'
p
For the second, can you confirm it be same as in this compose file? https://gist.githubusercontent.com/raw/228475326f43e9c753d8753463241f1e
Refer to the
networks
section from the above URL and add it to
deploy/docker/clickhouse-setup/docker-compose.yaml
. Followed by
./deploy/install.sh
- make sure to clean up existing SigNoz services before you run install script.
e
@User thanks a lot i was adding the networks field at the end of the file 😞
p
Unsupported config option for services.networks: 'default'
I think you are trying to use the default network in the services causing this error. The default network configuration is by default applied to all services of the compose YAML.
e
it is working now
👍 1
p
That's great to hear 🎉