Session 2026-05-13: Nettoyage infra, BunkerM+Traefik, agentLink→REST, ChirpStack
- Nettoyage: suppression conteneurs TTS, anciens Chirpstack, exited/excess - BunkerM recréé et ajouté à traefik-public (mosquitto2.digitribe.fr) - Config Traefik mise à jour: 3 fichiers mosquitto2 → bunkerm-bunkerm-1 - AgentLink MQTT désactivé sur 25 assets (master+smartcity) - REST OpenRemote activé dans simulateur (location GeoJSONPoint incluse) - ChirpStack: nouveau docker-compose (postgres, redis, mosquitto, chirpstack) - Session state documenté dans SESSION_STATE_2026-05-13.md
This commit is contained in:
@@ -3,20 +3,17 @@ version: "3.8"
|
||||
# =============================================================================
|
||||
# ChirpStack LoRaWAN Network Server — Smart City Digital Twin
|
||||
# =============================================================================
|
||||
# Déploiement derrière Traefik avec sous-domaines dédiés
|
||||
# Subdomaines:
|
||||
# - chirpstack.digitribe.fr → Console web (port 8080)
|
||||
# - chirpstack-api.digitribe.fr → REST API (port 8090)
|
||||
# - chirpstack-ws.digitribe.fr → Gateway Bridge WebSocket (port 3001)
|
||||
# Image officielle chirpstack/chirpstack:latest
|
||||
# Credentials par défaut: admin/admin
|
||||
# =============================================================================
|
||||
|
||||
services:
|
||||
chirpstack:
|
||||
image: chirpstack/chirpstack:4
|
||||
image: chirpstack/chirpstack:latest
|
||||
command: -c /etc/chirpstack
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./configuration/chirpstack:/etc/chirpstack
|
||||
- ./configuration/chirpstack:/etc/chirpstack:ro
|
||||
depends_on:
|
||||
- postgres
|
||||
- mosquitto
|
||||
@@ -34,13 +31,14 @@ services:
|
||||
networks:
|
||||
- traefik-public
|
||||
- smartcity-shared
|
||||
|
||||
chirpstack-gateway-bridge:
|
||||
image: chirpstack/chirpstack-gateway-bridge:4
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "1700:1700/udp"
|
||||
volumes:
|
||||
- ./configuration/chirpstack-gateway-bridge:/etc/chirpstack-gateway-bridge
|
||||
- ./configuration/chirpstack-gateway-bridge:/etc/chirpstack-gateway-bridge:ro
|
||||
environment:
|
||||
- INTEGRATION__MQTT__EVENT_TOPIC_TEMPLATE=eu868/gateway/{{ .GatewayID }}/event/{{ .EventType }}
|
||||
- INTEGRATION__MQTT__STATE_TOPIC_TEMPLATE=eu868/gateway/{{ .GatewayID }}/state/{{ .StateType }}
|
||||
@@ -49,43 +47,45 @@ services:
|
||||
- mosquitto
|
||||
networks:
|
||||
- smartcity-shared
|
||||
|
||||
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
|
||||
volumes:
|
||||
- ./configuration/chirpstack-gateway-bridge:/etc/chirpstack-gateway-bridge:ro
|
||||
depends_on:
|
||||
- mosquitto
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.chirpstack-ws.rule=Host(`chirpstack-ws.digitribe.fr`)"
|
||||
- "traefik.http.routers.chirpstack-ws.entrypoints=websecure"
|
||||
- "traefik.http.routers.chirpstack-ws.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.services.chirpstack-ws.loadbalancer.server.port=3001"
|
||||
volumes:
|
||||
- ./configuration/chirpstack-gateway-bridge:/etc/chirpstack-gateway-bridge
|
||||
depends_on:
|
||||
- mosquitto
|
||||
networks:
|
||||
- traefik-public
|
||||
- smartcity-shared
|
||||
|
||||
chirpstack-rest-api:
|
||||
image: chirpstack/chirpstack-rest-api:4
|
||||
restart: unless-stopped
|
||||
command: --server chirpstack:8080 --bind 0.0.0.0:8090 --insecure
|
||||
depends_on:
|
||||
- chirpstack
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.chirpstack-api.rule=Host(`chirpstack-api.digitribe.fr`)"
|
||||
- "traefik.http.routers.chirpstack-api.entrypoints=websecure"
|
||||
- "traefik.http.routers.chirpstack-api.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.services.chirpstack-api.loadbalancer.server.port=8090"
|
||||
depends_on:
|
||||
- chirpstack
|
||||
networks:
|
||||
- traefik-public
|
||||
- smartcity-shared
|
||||
|
||||
postgres:
|
||||
image: postgres:14-alpine
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./configuration/postgresql/initdb:/docker-entrypoint-initdb.d
|
||||
- chirpstack-postgresqldata:/var/lib/postgresql/data
|
||||
environment:
|
||||
- POSTGRES_USER=chirpstack
|
||||
@@ -93,6 +93,7 @@ services:
|
||||
- POSTGRES_DB=chirpstack
|
||||
networks:
|
||||
- smartcity-shared
|
||||
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
restart: unless-stopped
|
||||
@@ -101,20 +102,18 @@ services:
|
||||
- chirpstack-redisdata:/data
|
||||
networks:
|
||||
- smartcity-shared
|
||||
|
||||
mosquitto:
|
||||
image: eclipse-mosquitto:2
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./configuration/mosquitto/config/:/mosquitto/config/
|
||||
- chirpstack-mosquitto-data:/mosquitto/data
|
||||
- chirpstack-mosquitto-log:/mosquitto/log
|
||||
- ./configuration/mosquitto/config/:/mosquitto/config/:ro
|
||||
networks:
|
||||
- smartcity-shared
|
||||
|
||||
volumes:
|
||||
chirpstack-postgresqldata:
|
||||
chirpstack-redisdata:
|
||||
chirpstack-mosquitto-data:
|
||||
chirpstack-mosquitto-log:
|
||||
|
||||
networks:
|
||||
traefik-public:
|
||||
|
||||
Reference in New Issue
Block a user