diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 50e436f1af18af83202231742a2da7e58bc0a023..f98814dd81a395eddf6504055c2295548bb15d04 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -13,9 +13,9 @@ services: interval: 5s timeout: 5s retries: 5 - ### THIS SHOULD NOT SET FOR PRODUCTION - ports: - - 631:631 + ### THIS SHOULD NOT BE SETTED FOR PRODUCTION -> Enable this for setting your printer + # ports: + # - 631:631 devices: ### You should scan which printer with lsub # - /dev/bus/usb/001/005:/dev/bus/usb/001/005 @@ -45,7 +45,6 @@ services: - ./influxdb/data:/var/lib/influxdb2 - ./influxdb/config:/etc/influxdb2 environment: - - FOO=BAR # - INFLUXDB_ADMIN_ENABLED=true - INFLUXDB_TOKEN="myL9Rou80UKyqgHrRXNIOe1YtoU5L15PlIyPwFs-NZoJYLa2X2Mdu0sYgd1FYEEAeaLNW0VeaJYTivE5iBFyiQ==" ### @@ -57,7 +56,6 @@ services: - DOCKER_INFLUXDB_INIT_ORG=c3infodesk - DOCKER_INFLUXDB_INIT_BUCKET=c3infodesk-print - DOCKER_INFLUXDB_INIT_RETENTION=1w - # - DOCKER_INFLUXDB_INIT_ADMIN_TOKEN="my-super-secret-auth-token" - DOCKER_INFLUXDB_INIT_ADMIN_TOKEN="myL9Rou80UKyqgHrRXNIOe1YtoU5L15PlIyPwFs-NZoJYLa2X2Mdu0sYgd1FYEEAeaLNW0VeaJYTivE5iBFyiQ==" ### ### APP @@ -79,22 +77,23 @@ services: condition: service_healthy links: - cups - ports: - - 8000:8000 + ### THIS SHOULD NOT BE SETTED FOR PRODUCTION -> Enable this for debugging + # ports: + # - 8000:8000 volumes: - cups_socket:/run/cups ### Mounting the local file system to the container, for easy backup and debugging - ../data:/c3printing/data - ../logs:/c3printing/logs - ../uploads:/c3printing/uploads - ### DEBUG + ### DEBUG: Using local folder mounted at the container # - ../src/:/c3printing/src ### ### PLEASE SET THIS FIELDS, most are set from the Docker image ### environment: - # - PRINTER_NAME=EPSON_ET-2820_Series_USB - - PRINTER_NAME=Brother_HL-2140_series + ### 38c3 + - PRINTER_NAME=HP_LaserJet_M402n ### - PATH_UPLOAD=/c3printing/uploads - PATH_LOG_FILE=/c3printing/logs/log_01.txt