refacto: reorganize folder tree to split lora gateway stack from app

Those stack won't necessarily be on the same host, so they need to be
split
This commit is contained in:
Alexis Fourmaux 2026-05-08 12:17:03 +02:00
parent 31a1c14831
commit 851e8947bc
11 changed files with 9 additions and 11 deletions

4
app/docker-compose.yml Normal file
View file

@ -0,0 +1,4 @@
services:
consumer:
build: ./consumer
restart: unless-stopped

View file

@ -51,11 +51,11 @@ services:
- chirpstack - chirpstack
postgres: postgres:
image: postgres:14-alpine image: postgres:18-alpine
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./configuration/postgresql/initdb:/docker-entrypoint-initdb.d - ./configuration/postgresql/initdb:/docker-entrypoint-initdb.d
- postgresqldata:/var/lib/postgresql/data - db:/var/lib/postgresql
environment: environment:
- POSTGRES_USER=chirpstack - POSTGRES_USER=chirpstack
- POSTGRES_PASSWORD=chirpstack - POSTGRES_PASSWORD=chirpstack
@ -66,7 +66,7 @@ services:
restart: unless-stopped restart: unless-stopped
command: redis-server --save 300 1 --save 60 100 --appendonly no command: redis-server --save 300 1 --save 60 100 --appendonly no
volumes: volumes:
- redisdata:/data - redis:/data
mosquitto: mosquitto:
image: eclipse-mosquitto:2 image: eclipse-mosquitto:2
@ -76,12 +76,6 @@ services:
volumes: volumes:
- ./configuration/mosquitto/config/:/mosquitto/config/ - ./configuration/mosquitto/config/:/mosquitto/config/
application:
build: ./app
restart: unless-stopped
depends_on:
- mosquitto
volumes: volumes:
postgresqldata: db:
redisdata: redis: