compose_format
compose_format copied to clipboard
format docker compose files using recipes from best practices
See https://docs.docker.com/compose/compose-file/#extension-fields Mine does not work with `compose_format`: ```yaml version: '3.8' x-common: &common env_file: - public.env services: app:
Some configuration values should be quoted. Pls, take a look at this snippet: ``` version: '3' services: mysql: image: mysql:latest environment: MYSQL_DATABASE: test MYSQL_PASSWORD: test # See: https://hub.docker.com/_/mysql MYSQL_RANDOM_ROOT_PASSWORD: 'yes'...
I tried the image but it doesn't work. See following history (shell from host-system): ``` root@localhost: cat docker-compose.yml | docker run -i funkwerk/compose_format Traceback (most recent call last): File "/bin/compose_format",...
updates alpine to 3.11 with 3.8.1 python used different install method for python packages in Dockerfile fixes round trip dumper error added .editorconfig for better practice modified .gitignore to include...
The underlaying `ruamel.yaml` library is wrongfully detecting `ipam` map as `CommentedSeq` and so the regex match, inside `fix_sexadecimal_numbers`, is failing when trying to process `ordereddict([('subnet', '172.16.0.0/16')])` instead of string object....
Upstream docs: https://docs.docker.com/compose/compose-file/#build
```yaml version: '3.3' services: nifi: container_name: nifi image: apache/nifi:1.7.1 environment: NIFI_WEB_HTTP_PORT: '8443' NIFI_WEB_PROXY_HOST: '0.0.0.0' volumes: - type: bind source: ./certs target: /opt/certs - type: volume target: /opt/nifi/nifi-1.7.1/conf - type: volume...
When I try do use it on my `docker-compose.yaml` file, which is perfectly valid for the _docker-compose_ command, I get: ``` Traceback (most recent call last): File "/home/ser/.local/bin/compose_format", line 35,...
There is a [new service key `profiles`](https://docs.docker.com/compose/profiles/) since docker-compose v1.28: https://stackoverflow.com/a/65922688. Using it leads to an error: ``` AssertionError: key: profiles not known ```