File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed
Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 4040 echo "alias l='ls -altr'" >> /root/.bashrc
4141COPY --from=build-backend /snmpcollector/ /snmpcollector/
4242WORKDIR /snmpcollector
43- CMD ["/usr/bin/ python" , "-m" , "snmpcollector" ]
43+ CMD ["python" , "-m" , "snmpcollector" ]
Original file line number Diff line number Diff line change 1+ version : ' 2.1'
2+ services :
3+
4+ #
5+ # Welcome to Grafolean SNMP Collector!
6+ #
7+ # This file should be modified to suit your running environment. Please check the comments and change
8+ # the settings appropriately.
9+ #
10+
11+ snmpcollector :
12+ # If you wish to load an explicit version, change the next line. For example:
13+ # image: grafolean/grafolean-worker-snmp:v1.0.0
14+ image : grafolean/grafolean-worker-snmp
15+ build :
16+ context : .
17+ dockerfile : Dockerfile
18+ container_name : grafolean-worker-snmp
19+ environment :
20+ # Backend url must be set to the address of the Grafolean backend, for example this uses Grafolean hosted service:
21+ # - BACKEND_URL=https://grafolean.com/api
22+ - BACKEND_URL=${BACKEND_URL}
23+ # To use SNMP Collector, a bot with the protocol "snmp" must be added via user interface, then the token needs to be copied here:
24+ - BOT_TOKEN=${BOT_TOKEN}
25+ # Interval between fetching information about jobs:
26+ - JOBS_REFRESH_INTERVAL=${JOBS_REFRESH_INTERVAL}
27+ restart : always
28+ # Grafolean backend must be accessible on BACKEND_URL *from the point of view of container*. If running
29+ # on the same host, '127.0.0.1' translates to container, not host - this directive changes network mode
30+ # so that Docker networking is bypassed.
31+ # network_mode: "host"
You can’t perform that action at this time.
0 commit comments