diff --git a/cfg/nsqadmin.toml b/cfg/nsqadmin.toml deleted file mode 100644 index 72cab8b..0000000 --- a/cfg/nsqadmin.toml +++ /dev/null @@ -1,3 +0,0 @@ -http_address = "0.0.0.0:4171" -nsqlookupd_http_addresses = ["nsqlookupd:4161"] -broadcast_address = "nsqadmin" \ No newline at end of file diff --git a/cfg/nsqd.toml b/cfg/nsqd.toml deleted file mode 100644 index 90b9ff5..0000000 --- a/cfg/nsqd.toml +++ /dev/null @@ -1,7 +0,0 @@ -http_address = "0.0.0.0:4151" -tcp_address = "0.0.0.0:4150" -data_path = "/data" -mem_queue_size = 10000 -max_bytes_per_file = 104857600 -nsqlookupd_http_addresses = ["nsqlookupd:4161"] -broadcast_address = "nsqd" \ No newline at end of file diff --git a/cfg/nsqlookupd.toml b/cfg/nsqlookupd.toml deleted file mode 100644 index d076a74..0000000 --- a/cfg/nsqlookupd.toml +++ /dev/null @@ -1,3 +0,0 @@ -http_address = "0.0.0.0:4161" -tcp_address = "0.0.0.0:4160" -broadcast_address = "nsqlookupd" \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 2051aa8..c5eab6e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,15 +1,13 @@ services: nsqlookupd: image: nsqio/nsq - command: /nsqlookupd --config=/etc/nsq/cfg/nsqlookupd.toml + command: /nsqlookupd ports: - "4160:4160" - "4161:4161" - volumes: - - ./cfg:/etc/nsq/cfg nsqd: image: nsqio/nsq - command: /nsqd --config=/etc/nsq/cfg/nsqd.toml + command: /nsqd --lookupd-tcp-address=nsqlookupd:4160 depends_on: - nsqlookupd ports: @@ -17,12 +15,9 @@ services: - "4151:4151" volumes: - ./data:/data - - ./cfg:/etc/nsq/cfg nsqadmin: image: nsqio/nsq - command: /nsqadmin --config=/etc/nsq/cfg/nsqadmin.toml - volumes: - - ./cfg:/etc/nsq/cfg + command: /nsqadmin --lookupd-http-address=nsqlookupd:4161 depends_on: - nsqlookupd ports: