Thank you again Doug!  Ok, part of my issue was that I had not fully read 
through the docs.  I haven't done a ton with Docker and all of the other 
containers that I had created were for apps that had their own web server 
where  I would do the configuration.  I spent a few minutes with the 
documentation right now - I see that the config is done in the 
configuration file and not in a UI.  I may tackle the web server down the 
line - I really appreciate you including that.  I am coming from Virtual 
Weather Station and my main goal is uploading to WU so that I can access 
via Alex by using some code that I wrote in AWS.  For some reason my 
uploads to WU stopped working last year and their support refused to answer 
me.  


On Monday, February 14, 2022 at 10:53:00 AM UTC-5 [email protected] 
wrote:

> Adam:
>
> By Default, each stack in Docker will have its own internal network. These 
> will show up as 172.16.x.x. That is ok as docker will route traffic from 
> the host to the container as long as you have the ports mapped correctly.
>
> The next thing we need to check is to see if you have a http server inside 
> the container that you are running with WeeWx. Looking at felddy's 
> weewx-docker Dockerfile (weewx-docker/Dockerfile at develop · 
> felddy/weewx-docker · GitHub 
> <https://github.com/felddy/weewx-docker/blob/develop/Dockerfile>) I did 
> not see a http server serving the pages. So the html will not be viewable 
> without a http server.
>
> The best course of action here is to spin up a http server as a container. 
> I actually do this for my setup (www.largoweather.com) using a nginx 
> container. What i do is configure weewx to write to a directory that is 
> shared with the container. Then I add both containers to the same yaml file 
> and have them share the same network. 
>
> Here is a copy of my yaml file. In it I am running Tom Mitchell's weewx 
> container (GitHub - tomdotorg/docker-weewx: Docker image for weewx 
> weather software <https://github.com/tomdotorg/docker-weewx>) with 
> Belchertown skin using a MQTT broker with a ngnix web server. You can 
> modify this to your liking. If you have any questions on the configs, just 
> let me know.
>
> # ====== WEEWX STACK START ======
> version: "2.1"
> services:
>   web:
>     image: nginx
>     container_name: weewx_web
>     networks:
>       - wxnet
>     ports:
>       - 91:80
>     depends_on:
>       - mqtt-broker
>       - weewx-engine
>     environment:
>       - TZ=America/New_York
>       - NGINX_HOST=<<YOUR-DOMAIN-NAME>>.com
>       - NGINX_PORT=80
>     volumes:
>       - /media/docker/volumes/weewx/html:/usr/share/nginx/html:ro
>       - /media/docker/volumes/ngnix/templates:/etc/nginx/templates
>     restart: unless-stopped 
>   
>   mqtt-broker:
>     image: eclipse-mosquitto:latest
>     container_name: weewx_mqtt
>     networks:
>       - wxnet
>     environment:
>       - TZ=America/New_York
>     volumes:
>       - /media/docker/volumes/weewx/mosquitto/config:/mosquitto/config
>       - /media/docker/volumes/weewx/mosquitto/data:/mosquitto/data
>       - /media/docker/volumes/weewx/mosquitto/log:/mosquitto/log
>     ports:
>       - 1883:1883
>       - 9001:9001
>     depends_on:
>       - weewx-engine
>     restart: unless-stopped    
>   
>   weewx-engine:
>     image:  mitct02/weewx:4.5.1
>     container_name: weewx_engine
>     environment:
>       - TZ=America/New_York
>     networks:
>       - wxnet
>     privileged: true
>     volumes:
>       - /media/docker/volumes/weewx/config/:/home/weewx/conf/
>       - 
> /media/docker/volumes/weewx/skins/Belchertown/:/home/weewx/skins/Belchertown/
>       - /media/docker/volumes/weewx/html/:/home/weewx/public_html/
>     restart: unless-stopped
>  
> networks:
>   wxnet:
>     driver: bridge
>
>
> # ====== WEEWX STACK STOP =======[
>
>
>
> On Sunday, February 13, 2022 at 6:36:49 PM UTC-5 [email protected] 
> wrote:
>
>> Sorry, still struggling with this one.  I don't want a new network 
>> created.  Instead, I just want to bind to the host.  Any help would be 
>> greatly appreciated.  Thank you again!
>>
>> On Sunday, February 13, 2022 at 1:54:28 PM UTC-5 Adam Morgan wrote:
>>
>>> Thank you, that's a good thought.  I did verify that nothing else is 
>>> using that port (I only have 10ish containers).
>>>
>>> I did notice that this created a new network.  Could that be the issue?  
>>> In my limited experience I have only ever used "host".  This is a device 
>>> running on my network and not local host - would that mean that I can't use 
>>> the IP of the host to access it through the browser?  
>>>
>>> On Sunday, February 13, 2022 at 1:05:29 PM UTC-5 vince wrote:
>>>
>>>> I'd run "docker ps -a" and look at which containers are forwarding 
>>>> which ports.
>>>>
>>>>>
>>>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/db3412fb-00b4-47e6-83f1-27336538e335n%40googlegroups.com.

Reply via email to