Commit 8531716187ffe7eb53f3549b13d5058bc307c987

Authored by George Vlahavas
1 parent 36e14711e8

Put mqtt and timescaledb data on docker volumes

Showing 1 changed file with 6 additions and 3 deletions

docker-compose-jfrog.yml View file @ 8531716
... ... @@ -138,15 +138,15 @@
138 138 - "1883:1883"
139 139 - "9001:9001"
140 140 volumes:
141   - - ./data/mosquitto/data:/mosquitto/data
142   - - ./data/mosquitto/log:/mosquitto/log
  141 + - mqtt_data_volume:/mosquitto/data
  142 + - mqtt_log_volume:/mosquitto/log
143 143  
144 144 #Persistence
145 145 timescaledb:
146 146 image: registry.curex-project.eu:443/curex-local/kea_timescaledb:2.1.0-pg11-oss
147 147 container_name: kea_timescaledb
148 148 volumes:
149   - - ./data/timescaledb:/var/lib/postgresql/data
  149 + - timescaledb_volume:/var/lib/postgresql/data
150 150 environment:
151 151 - POSTGRES_USER=postgres
152 152 - POSTGRES_PASSWORD=postgres
... ... @@ -170,4 +170,7 @@
170 170 api_volume:
171 171 data_volume:
172 172 pcap_volume:
  173 + mqtt_data_volume:
  174 + mqtt_log_volume:
  175 + timescaledb_volume: