ansible-role-docker-compose-generator
ansible-role-docker-compose-generator copied to clipboard
Spacing bug
If I create the following directory structure:
services
└── solid-dog
├── 01-Caddy
│ └── compose.yaml
└── 99-ExtraConfig
└── compose.yaml
And the compose file in the ExtraConfig directory contains:
services:
networks:
proxy:
caddy-macvlan:
name: caddy-macvlan
driver: macvlan
driver_opts:
parent: eth0
ipam:
config:
- subnet: "192.168.50.0/24"
gateway: "192.168.50.1"
volumes:
caddy_data:
caddy_config:
The compose file that is generated is not correct:
...
volumes:
- caddy_data:/data
- cddy_config:/config
- ./Caddyfile:/etc/caddy/Caddyfile:ro
networks:
caddy-macvlan:
ipv4_address: 192.168.50.5
proxy:
networks:
proxy:
caddy-macvlan:
name: caddy-macvlan
driver: macvlan
...
You can see that the spacing of the networks: line is incorrect.