Skip to content
Snippets Groups Projects
Commit 5b294b13 authored by fejao's avatar fejao
Browse files

Post_38c3_03

parent c943d7f1
Branches
No related tags found
1 merge request!5Post_38c3_03
# c3InfoDesk Printer
## WIP
- [x] Set the app for running over containers.
- [x] Finish Makefile.
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment