Skip to content

Instantly share code, notes, and snippets.

@rafaribe
Last active December 11, 2021 00:50
Show Gist options
  • Save rafaribe/fd473f911340541a8a1e5587de63db1c to your computer and use it in GitHub Desktop.
Save rafaribe/fd473f911340541a8a1e5587de63db1c to your computer and use it in GitHub Desktop.
docker-compose for helium miner with codeserver for easy edits
---
version: "2.1"
services:
miner:
image: quay.io/team-helium/miner:miner-arm64_2021.12.09.0
container_name: miner
environment:
- REGION_OVERRIDE=EU868
ports:
- "44158:44158/tcp"
volumes:
- /home/pi/miner_data:/var/data
- /home/pi/miner_config/sys.config:/config/sys.config
cap_add:
- SYS_RAWIO
devices:
- /dev/i2c-1:/dev/i2c-1
networks:
- helium
ulimits:
nofile:
soft: 64000
hard: 64000
restart: unless-stopped
logging:
driver: json-file
options:
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
node_exporter:
image: quay.io/prometheus/node-exporter:latest
container_name: node_exporter
command:
- '--path.rootfs=/host'
volumes:
- '/:/host:ro,rslave'
network_mode: host
pid: host
restart: unless-stopped
logging:
driver: json-file
options:
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
promtail:
image: grafana/promtail:latest
container_name: promtail
volumes:
- /home/pi/promtail/promtail.yaml:/etc/promtail/promtail.yaml
- /home/pi/promtail/tmp:/tmp
- /home/pi/miner_data/log:/host/home/pi/miner_data/log
- /var/lib/docker/containers:/host/var/lib/docker/containers
- /var/log:/host/var/log
command: -config.file=/etc/promtail/promtail.yaml
networks:
- helium
restart: unless-stopped
logging:
driver: json-file
options:
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
code-server:
image: lscr.io/linuxserver/code-server
container_name: code-server
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
- DEFAULT_WORKSPACE=/workspace #Opens /home/pi as default
volumes:
- /home/pi/:/workspace
ports:
- 8443:8443
networks:
helium:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment