diff --git a/script/docker/README.md b/script/docker/README.md index ec76b4e..dc803c0 100644 --- a/script/docker/README.md +++ b/script/docker/README.md @@ -1,3 +1,3 @@ # How do I use this thing? -`docker compose up` +`docker compose up -d` diff --git a/script/docker/compose.yaml b/script/docker/compose.yaml index 66f5444..e432fda 100644 --- a/script/docker/compose.yaml +++ b/script/docker/compose.yaml @@ -12,41 +12,41 @@ services: target: /app/config.ini extra_hosts: - "host.docker.internal:host-gateway" # Used to access a local linux meshtasticd device via tcp - # ollama: - # image: ollama/ollama:0.5.1 - # volumes: - # - ./ollama:/root/.ollama - # - ./ollama-entrypoint.sh:/entrypoint.sh - # container_name: ollama - # pull_policy: always - # tty: true - # restart: always - # entrypoint: - # - /usr/bin/bash - # - /entrypoint.sh - # expose: - # - 11434 - # healthcheck: - # test: "apt update && apt install curl -y && curl -f http://localhost:11434/api/tags | grep -q llama3.2:3b" - # interval: 30s - # timeout: 10s - # retries: 20 - # node-exporter: - # image: quay.io/prometheus/node-exporter:latest - # volumes: - # - /proc:/host/proc:ro - # - /sys:/host/sys:ro - # - /:/rootfs:ro - # command: - # - --path.procfs=/host/proc - # - --path.rootfs=/rootfs - # - --path.sysfs=/host/sys - # - --collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/) - # restart: unless-stopped - # expose: - # - 9100 - # network_mode: host - # pid: host + ollama: + image: ollama/ollama:0.5.1 + volumes: + - ./ollama:/root/.ollama + - ./ollama-entrypoint.sh:/entrypoint.sh + container_name: ollama + pull_policy: always + tty: true + restart: always + entrypoint: + - /usr/bin/bash + - /entrypoint.sh + expose: + - 11434 + healthcheck: + test: "apt update && apt install curl -y && curl -f http://localhost:11434/api/tags | grep -q llama3.2:3b" + interval: 30s + timeout: 10s + retries: 20 + node-exporter: + image: quay.io/prometheus/node-exporter:latest + volumes: + - /proc:/host/proc:ro + - /sys:/host/sys:ro + - /:/rootfs:ro + command: + - --path.procfs=/host/proc + - --path.rootfs=/rootfs + - --path.sysfs=/host/sys + - --collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/) + restart: unless-stopped + expose: + - 9100 + network_mode: host + pid: host configs: me_config: file: ./config.ini \ No newline at end of file