From e60a6d4f7f385613731a79130a0d9ae2c13dbca3 Mon Sep 17 00:00:00 2001 From: Shamkhal Huseynzade <121178638+Shymxll@users.noreply.github.com> Date: Fri, 15 May 2026 11:51:16 +0300 Subject: [PATCH] feat: make host ports configurable via environment variables For Coolify --- docker-compose.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 5d6a9f14..39edcdcb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,13 +14,13 @@ services: - REDIS_HOST=redis - POSTGRESQL_HOST=postgres ports: - - "8080:8080" + - "${CHIRPSTACK_HTTP_PORT:-8080}:8080" chirpstack-gateway-bridge: image: chirpstack/chirpstack-gateway-bridge:4 restart: unless-stopped ports: - - "1700:1700/udp" + - "${CHIRPSTACK_GW_UDP_PORT:-1700}:1700/udp" volumes: - ./configuration/chirpstack-gateway-bridge:/etc/chirpstack-gateway-bridge environment: @@ -29,13 +29,13 @@ services: - INTEGRATION__MQTT__COMMAND_TOPIC_TEMPLATE=eu868/gateway/{{ .GatewayID }}/command/# depends_on: - mosquitto - + chirpstack-gateway-bridge-basicstation: image: chirpstack/chirpstack-gateway-bridge:4 restart: unless-stopped command: -c /etc/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-eu868.toml ports: - - "3001:3001" + - "${CHIRPSTACK_BASICSTATION_PORT:-3001}:3001" volumes: - ./configuration/chirpstack-gateway-bridge:/etc/chirpstack-gateway-bridge depends_on: @@ -46,7 +46,7 @@ services: restart: unless-stopped command: --server chirpstack:8080 --bind 0.0.0.0:8090 --insecure ports: - - "8090:8090" + - "${CHIRPSTACK_REST_API_PORT:-8090}:8090" depends_on: - chirpstack @@ -72,8 +72,8 @@ services: image: eclipse-mosquitto:2 restart: unless-stopped ports: - - "1883:1883" - volumes: + - "${CHIRPSTACK_MQTT_PORT:-1883}:1883" + volumes: - ./configuration/mosquitto/config/:/mosquitto/config/ volumes: