Private network fixes

This commit is contained in:
2026-02-11 15:35:27 -05:00
parent 65f951dfcc
commit fa192247fe

View File

@@ -12,7 +12,7 @@ services:
- DATABASE_URL=sqlite:///./data/drugs.db - DATABASE_URL=sqlite:///./data/drugs.db
- PUID=1001 - PUID=1001
- PGID=1001 - PGID=1001
- MQTT_BROKER_HOST=${MQTT_BROKER_HOST:-localhost} - MQTT_BROKER_HOST=${MQTT_BROKER_HOST:-mosquitto}
- MQTT_BROKER_PORT=${MQTT_BROKER_PORT:-1883} - MQTT_BROKER_PORT=${MQTT_BROKER_PORT:-1883}
- MQTT_USERNAME=${MQTT_USERNAME:-} - MQTT_USERNAME=${MQTT_USERNAME:-}
- MQTT_PASSWORD=${MQTT_PASSWORD:-} - MQTT_PASSWORD=${MQTT_PASSWORD:-}
@@ -21,8 +21,6 @@ services:
- LABEL_TEMPLATE_ID=${LABEL_TEMPLATE_ID:-vet_label} - LABEL_TEMPLATE_ID=${LABEL_TEMPLATE_ID:-vet_label}
- LABEL_SIZE=${LABEL_SIZE:-29x90} - LABEL_SIZE=${LABEL_SIZE:-29x90}
- LABEL_TEST=${LABEL_TEST:-false} - LABEL_TEST=${LABEL_TEST:-false}
networks:
- webapps
mosquitto: mosquitto:
image: eclipse-mosquitto:latest image: eclipse-mosquitto:latest
@@ -34,12 +32,10 @@ services:
environment: environment:
- PUID=1001 - PUID=1001
- PGID=1001 - PGID=1001
networks:
- webapps
frontend: frontend:
image: nginx:alpine image: nginx:alpine
container_name: drugsdev container_name: drugsprod
volumes: volumes:
- ./frontend:/usr/share/nginx/html:ro - ./frontend:/usr/share/nginx/html:ro
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
@@ -47,6 +43,7 @@ services:
- backend - backend
- mosquitto - mosquitto
networks: networks:
- default
- webapps - webapps
volumes: volumes:
@@ -54,5 +51,6 @@ volumes:
mosquitto_logs: mosquitto_logs:
networks: networks:
default:
webapps: webapps:
external: true external: true