refacto: reorganize files to easily add an API service

This commit is contained in:
Alexis Fourmaux 2026-05-09 18:21:45 +02:00
parent 5c480db410
commit 9c883a8eca
22 changed files with 26 additions and 23 deletions

View file

@ -1,44 +0,0 @@
services:
consumer:
build: ./consumer
restart: unless-stopped
networks:
- lora-gateway_mqtt
- database
db:
image: postgres:18-alpine
restart: unless-stopped
volumes:
- ./consumer/initdb:/docker-entrypoint-initdb.d:ro
- db:/var/lib/postgresql
networks:
- database
environment:
- POSTGRES_USER=simugaz
- POSTGRES_PASSWORD=simugaz
- POSTGRES_DB=simugaz
pgadmin:
image: dpage/pgadmin4:latest
restart: unless-stopped
ports:
- 8081:80
networks:
- public
- database
volumes:
- ./servers.json:/pgadmin4/servers.json
environment:
PGADMIN_DEFAULT_EMAIL: admin@example.com
PGADMIN_DEFAULT_PASSWORD: changeme
volumes:
db:
networks:
public:
database:
internal: true
lora-gateway_mqtt:
external: true