This runs pairs of docker containers configured to work together:
- an nginx container from upstream using a local public_html tree
- a weewx container writing to that public_html tree and saving its archives to a local dir
Note: this compose files uses /var/tmp/weewx_html and /var/tmp/weewx_archive for persistent storage
docker-compose build # to build all variants
docker-compose build weewx_pkg_deb10 # to build only one variant
docker-compose up # to run all variants
docker-compose up weewx_pkg_deb10 # to run only one variant
docker-compose up -d # to run all variants
docker-compose up -d weewx_pkg_deb10 # to run only one variant
see the docker-compose file
os | ver | type | python | nginx port | size (MB) |
---|---|---|---|---|---|
ubuntu | 20.04 | setup | 3 | 8879 | 168 |
ubuntu | 20.04 | dpkg | 3 | 8878 | 202 |
debian | 11 | setup | 3 | 8889 | 336 |
debian | 11 | dpkg | 3 | 8888 | 368 |
debian | 10 | setup | 3 | 8889 | 302 |
debian | 10 | dpkg | 3 | 8888 | 329 |
debian | 10 | setup | 2 | 8887 | 276 |
centos | 8 | setup | 3 | 8857 | 697 |
centos | 7 | setup | 2 | 8867 | 1220 |
- centos variants obviously aren't anywhere near as stripped as they could be
- all the images could probably be cleaned up significantly for size
docker-compose down
docker-compose down weewx_pkg_deb10 # to shut down just that one pair of containers
-
if on a mac and docker-compose is glacially slow, add the following to your /etc/hosts
127.0.0.1 localhost localunixsocket.local
available at https://github.com/vinceskahan/weewx-docker