H
Homarr2w ago
Ninja

How to disable analytics in Dockge

help needed
Solution:
i did delete and redeploy, that did the trick and the disable analytics env var now shows when running a printenv command
Jump to solution
26 Replies
Cakey Bot
Cakey Bot2w ago
Thank you for submitting a support request. Depending on the volume of requests, our team should get in contact with you shortly.
⚠️ Please include the following details in your post or we may reject your request without further comment: - Log (See https://homarr.dev/docs/community/faq#how-do-i-open-the-console--log) - Operating system (Unraid, TrueNAS, Ubuntu, ...) - Exact Homarr version (eg. 0.15.0, not latest) - Configuration (eg. docker-compose, screenshot or similar. Use ``your-text`` to format) - Other relevant information (eg. your devices, your browser, ...)
❓ Frequently Asked Questions | Homarr documentation
Can I install Homarr on a Raspberry Pi?
Manicraft1001
Manicraft10012w ago
Hi, please follow the rules when asking questions and read the documentation before you ask. See https://homarr.dev/docs/advanced/configuration/environment-variables/#anonymous-analytics
🐳 Environment variables | Homarr documentation
Homarr offers a Docker Container, which can be run on any compatible system, such as Unraid, Kubernetes and many more systems! Our Docker container is based on the node:16-alpine image and serves per standard on the port 7575.
Meierschlumpf
Meierschlumpf2w ago
Ninja — 09:44 i have a question my adguard home seems to block this Image1 is it necessary for homarr? Meierschlumpf — 09:45 Bo, you can diasable it with env variables, wait Set DISABLE_ANALYTICS to true Ninja — 09:54 where is the env file located? i tried to add it here but i dont think thats right Image2 Meierschlumpf — 09:55 it is, but without the space i would say Ninja — 09:57 tried, it still pops up Image3 Meierschlumpf — 09:58 Have you restarted the container? Ninja — 09:59 yes i will restart it one more time yeah still pops up Meierschlumpf — 10:01 Okay weird Let's move into ⁠💬・get-help
No description
No description
No description
Meierschlumpf
Meierschlumpf2w ago
Okay so you are using docker-compose I guess, right?
Ninja
NinjaOP2w ago
yes dockge if its the same thing
Meierschlumpf
Meierschlumpf2w ago
Okay, how did you resolve into the env variable not working? Did the count go up when you reloaded the homarr app?
Ninja
NinjaOP2w ago
yes i can show you before and after if you would like
Meierschlumpf
Meierschlumpf2w ago
Can you try to reload the cache of the page with CTRL + F5? Maybe something is cached?
Ninja
NinjaOP2w ago
did that, it went up again
Meierschlumpf
Meierschlumpf2w ago
Okay thats not good I guess Can you for yourself (without posting the result) go into the container and run printenv to check if the environment variables was set correctly?
Ninja
NinjaOP2w ago
okay there is no disable analytics in there
Meierschlumpf
Meierschlumpf2w ago
Okay weird?
Ninja
NinjaOP2w ago
yeah
Meierschlumpf
Meierschlumpf2w ago
Can you share your whole docker-compose file?
Ninja
NinjaOP2w ago
yes one moment
Meierschlumpf
Meierschlumpf2w ago
Without secrets of course
Ninja
NinjaOP2w ago
i dont know what that is XD but i dont think there is anything sensitive
version: "3"
#---------------------------------------------------------------------#
# Homarr - A simple, yet powerful dashboard for your server. #
#---------------------------------------------------------------------#
services:
homarr:
container_name: homarr
image: ghcr.io/ajnart/homarr:latest
environment:
- BASE_URL=
- DISABLE_ANALYTICS=true
networks:
- my_bridge_network
deploy:
restart_policy:
condition: unless-stopped
resources:
limits:
cpus: "4"
memory: 1024M
restart: unless-stopped
volumes:
- C:\Users\Ninja\Documents\docker stuff\homarr\config:/app/data/configs
- C:\Users\Ninja\Documents\docker stuff\homarr\data:/data
- C:\Users\Ninja\Documents\docker stuff\homarr\icons:/app/public/icons
# - /var/run/docker.sock:/var/run/docker.sock:ro # (optional) For docker integrations
ports:
- 9222:7575
networks:
"": {}
my_bridge_network:
external: true
version: "3"
#---------------------------------------------------------------------#
# Homarr - A simple, yet powerful dashboard for your server. #
#---------------------------------------------------------------------#
services:
homarr:
container_name: homarr
image: ghcr.io/ajnart/homarr:latest
environment:
- BASE_URL=
- DISABLE_ANALYTICS=true
networks:
- my_bridge_network
deploy:
restart_policy:
condition: unless-stopped
resources:
limits:
cpus: "4"
memory: 1024M
restart: unless-stopped
volumes:
- C:\Users\Ninja\Documents\docker stuff\homarr\config:/app/data/configs
- C:\Users\Ninja\Documents\docker stuff\homarr\data:/data
- C:\Users\Ninja\Documents\docker stuff\homarr\icons:/app/public/icons
# - /var/run/docker.sock:/var/run/docker.sock:ro # (optional) For docker integrations
ports:
- 9222:7575
networks:
"": {}
my_bridge_network:
external: true
Meierschlumpf
Meierschlumpf2w ago
That looks normal to me, how did you restart? Only within docker desktop or within dockge?
Ninja
NinjaOP2w ago
No description
Meierschlumpf
Meierschlumpf2w ago
Okay can you instead try to Deploy it again? I thin restarting will just restart it with the previous configuration and so without the new env variable
Manicraft1001
Manicraft10012w ago
Restart will not recreate
Ninja
NinjaOP2w ago
ok so delete it and deploy again?
Manicraft1001
Manicraft10012w ago
Read the Dockge docs, not sure
Solution
Ninja
Ninja2w ago
i did delete and redeploy, that did the trick and the disable analytics env var now shows when running a printenv command
Ninja
NinjaOP2w ago
thank you very much both of you
Meierschlumpf
Meierschlumpf2w ago
Your welcome and merry christmas

Did you find this page helpful?