version: '3.8' services: backend: build: context: ./backend dockerfile: Dockerfile volumes: - ./backend/app:/app/app - ./data:/app/data environment: - DATABASE_URL=sqlite:///./data/drugs.db - PUID=1001 - PGID=1001 - MQTT_BROKER_HOST=${MQTT_BROKER_HOST:-localhost} - MQTT_BROKER_PORT=${MQTT_BROKER_PORT:-1883} - MQTT_USERNAME=${MQTT_USERNAME:-} - MQTT_PASSWORD=${MQTT_PASSWORD:-} - MQTT_LABEL_TOPIC=${MQTT_LABEL_TOPIC:-vet/labels/print} - MQTT_STATUS_TOPIC=${MQTT_STATUS_TOPIC:-vet/labels/status} - LABEL_TEMPLATE_ID=${LABEL_TEMPLATE_ID:-vet_label} - LABEL_SIZE=${LABEL_SIZE:-29x90} - LABEL_TEST=${LABEL_TEST:-false} networks: - webapps mosquitto: image: eclipse-mosquitto:latest volumes: - ./mosquitto/config/mosquitto.conf:/mosquitto/config/mosquitto.conf:ro - ./mosquitto/config/pwfile:/mosquitto/config/pwfile:ro - mosquitto_data:/mosquitto/data - mosquitto_logs:/mosquitto/log environment: - PUID=1001 - PGID=1001 networks: - webapps frontend: image: nginx:alpine container_name: drugsdev volumes: - ./frontend:/usr/share/nginx/html:ro - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro depends_on: - backend - mosquitto networks: - webapps volumes: mosquitto_data: mosquitto_logs: networks: webapps: external: true