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

Merge branch 'Post_38c3_03' into 'main'

Post_38c3_03

See merge request !5
parents c943d7f1 5b294b13
No related branches found
No related tags found
1 merge request!5Post_38c3_03
Pipeline #37613 passed
# c3InfoDesk Printer # c3InfoDesk Printer
## WIP ## WIP
- [x] Set the app for running over containers. - [x] Set the app for running over containers.
- [x] Finish Makefile. - [x] Finish Makefile.
......
...@@ -13,9 +13,9 @@ services: ...@@ -13,9 +13,9 @@ services:
interval: 5s interval: 5s
timeout: 5s timeout: 5s
retries: 5 retries: 5
### THIS SHOULD NOT SET FOR PRODUCTION ### THIS SHOULD NOT BE SETTED FOR PRODUCTION -> Enable this for setting your printer
ports: # ports:
- 631:631 # - 631:631
devices: devices:
### You should scan which printer with lsub ### You should scan which printer with lsub
# - /dev/bus/usb/001/005:/dev/bus/usb/001/005 # - /dev/bus/usb/001/005:/dev/bus/usb/001/005
...@@ -45,7 +45,6 @@ services: ...@@ -45,7 +45,6 @@ services:
- ./influxdb/data:/var/lib/influxdb2 - ./influxdb/data:/var/lib/influxdb2
- ./influxdb/config:/etc/influxdb2 - ./influxdb/config:/etc/influxdb2
environment: environment:
- FOO=BAR
# - INFLUXDB_ADMIN_ENABLED=true # - INFLUXDB_ADMIN_ENABLED=true
- INFLUXDB_TOKEN="myL9Rou80UKyqgHrRXNIOe1YtoU5L15PlIyPwFs-NZoJYLa2X2Mdu0sYgd1FYEEAeaLNW0VeaJYTivE5iBFyiQ==" - INFLUXDB_TOKEN="myL9Rou80UKyqgHrRXNIOe1YtoU5L15PlIyPwFs-NZoJYLa2X2Mdu0sYgd1FYEEAeaLNW0VeaJYTivE5iBFyiQ=="
### ###
...@@ -57,7 +56,6 @@ services: ...@@ -57,7 +56,6 @@ services:
- DOCKER_INFLUXDB_INIT_ORG=c3infodesk - DOCKER_INFLUXDB_INIT_ORG=c3infodesk
- DOCKER_INFLUXDB_INIT_BUCKET=c3infodesk-print - DOCKER_INFLUXDB_INIT_BUCKET=c3infodesk-print
- DOCKER_INFLUXDB_INIT_RETENTION=1w - DOCKER_INFLUXDB_INIT_RETENTION=1w
# - DOCKER_INFLUXDB_INIT_ADMIN_TOKEN="my-super-secret-auth-token"
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN="myL9Rou80UKyqgHrRXNIOe1YtoU5L15PlIyPwFs-NZoJYLa2X2Mdu0sYgd1FYEEAeaLNW0VeaJYTivE5iBFyiQ==" - DOCKER_INFLUXDB_INIT_ADMIN_TOKEN="myL9Rou80UKyqgHrRXNIOe1YtoU5L15PlIyPwFs-NZoJYLa2X2Mdu0sYgd1FYEEAeaLNW0VeaJYTivE5iBFyiQ=="
### ###
### APP ### APP
...@@ -79,22 +77,23 @@ services: ...@@ -79,22 +77,23 @@ services:
condition: service_healthy condition: service_healthy
links: links:
- cups - cups
ports: ### THIS SHOULD NOT BE SETTED FOR PRODUCTION -> Enable this for debugging
- 8000:8000 # ports:
# - 8000:8000
volumes: volumes:
- cups_socket:/run/cups - cups_socket:/run/cups
### Mounting the local file system to the container, for easy backup and debugging ### Mounting the local file system to the container, for easy backup and debugging
- ../data:/c3printing/data - ../data:/c3printing/data
- ../logs:/c3printing/logs - ../logs:/c3printing/logs
- ../uploads:/c3printing/uploads - ../uploads:/c3printing/uploads
### DEBUG ### DEBUG: Using local folder mounted at the container
# - ../src/:/c3printing/src # - ../src/:/c3printing/src
### ###
### PLEASE SET THIS FIELDS, most are set from the Docker image ### PLEASE SET THIS FIELDS, most are set from the Docker image
### ###
environment: environment:
# - PRINTER_NAME=EPSON_ET-2820_Series_USB ### 38c3
- PRINTER_NAME=Brother_HL-2140_series - PRINTER_NAME=HP_LaserJet_M402n
### ###
- PATH_UPLOAD=/c3printing/uploads - PATH_UPLOAD=/c3printing/uploads
- PATH_LOG_FILE=/c3printing/logs/log_01.txt - 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