Comments (9)
I'm almost certain we're using version 2 format (because it uses the services element).
It's supported by docker 1.10 released Feb 4, 2016.
https://docs.docker.com/compose/intro/history/#compose-file-format-versioning describes the history:
Version one of the Docker Compose command-line binary was first released in 2014. It was written in Python, and is invoked with docker-compose. Typically, Compose V1 projects include a top-level version element in the compose.yml file, with values ranging from 2.0 to 3.8, which refer to the specific file formats.
Version two of the Docker Compose command-line binary was announced in 2020, is written in Go, and is invoked with docker compose. Compose V2 ignores the version top-level element in the compose.yml file.
https://docs.docker.com/compose/compose-file/compose-file-v2/
from powerwall-dashboard.
I've put together a PR - feel free to accept or reject based on your assessment :)
My take on it is that:
- version should be removed
- docker compose (rather than docker-compose) and the set up for docker-compose (rather than the python module - which is V1 docker compose) probably should be part of the main instructions (hence the change to the readme) but I haven't changed anything else.
from powerwall-dashboard.
I've put together a PR - feel free to accept or reject based on your assessment :)
My take on it is that:
- version should be removed
- docker compose (rather than docker-compose) and the set up for docker-compose (rather than the python module - which is V1 docker compose) probably should be part of the main instructions (hence the change to the readme) but I haven't changed anything else.
I encountered this warning today.
As BJReplay stated, I removed the line from my yml file then the warning disappeared. Till now I do not have any problem with the new container established by the modified yml file.
The line I commented out is as the following:
#version: "3.8"
from powerwall-dashboard.
Note there are a couple of potentially confusing versions here: Versions of Docker Compose (V1 and V2) and versions of the compose file format (V1, V2 and V3).
This is a good jumping off point: https://docs.docker.com/compose/intro/history/
My gut feel is that unless someone is running a very old (pre Compose 1.6.0 in 2016) system, we can remove version.
from powerwall-dashboard.
Thanks @BJReplay - but correct me if I'm wrong, this is a "warning" not an error, or are you seeing this no longer work?
In any case, we can explore removing it. If you remove the version: "3.5"
line do you see any problems?
from powerwall-dashboard.
Thanks @jasonacox I was updating my issue (as I accidently) submitted before I'd finished while you commented.
Yes, it's just a warning - it still works.
If you remove the version line entirely, the warning goes away.
I'll do a little more research and see if I can find out when it became optional and see if I can work out the earliest version of Docker or Docker Compose that would break if we removed it. I'll get back here, and if you agree, I can put together a PR to remove it.
from powerwall-dashboard.
I suspect it will need to stay as long powerwall-dashboard continues to support older versions of compose. I've got a vague memory that version 3.8 of the yaml spec is the last one to need it?
from powerwall-dashboard.
I've got a vague memory that version 3.8 of the yaml spec is the last one to need it?
From my reading, not actually needed after 2.0 - was optional from that point on.
from powerwall-dashboard.
Closing as fix merged.
from powerwall-dashboard.
Related Issues (20)
- No data with Neo Gateway HOT 27
- Best practice for monitoring multiple sites that are really one location HOT 5
- Invalid Powerwall Login HOT 1
- Time of Use Solar -> Grid (over production) and From Grid (consumption) Metrics HOT 25
- Dashboard appears unable to communicate with Gateway HOT 2
- New Firmware 24.4.0 HOT 7
- Frequent gaps in InfluxDB and errors in pypowerwall HOT 84
- Local setup does not pull up any data HOT 13
- tesla-history.py not pulling all data HOT 16
- Gateway password resets (v4.1.3) HOT 35
- Additional Alerts
- Grafana provisioning environment variable affects performance badly HOT 3
- Proposal: Transition from bind mounts to named volumes HOT 5
- Upgrade to 4.2.1 failure HOT 4
- not showing Powerwall Vitals HOT 16
- Loss of data logging HOT 4
- Minor bug in setup.sh on docker group test if docker is the FIRST group returned by "id -Gn" HOT 2
- Additional Python modules for some Tools can no longer be installed via PIP as instructed HOT 2
- Power Flow Always Shows Off-Grid - Solar Only HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powerwall-dashboard.