Skip to content

Commit 10a48ed

Browse files
committed
Fix YAML parsing of IPv6 addresses in docker-compose examples
Colons in IPv6 addresses (IP6_SUBNET, PEERDNS) are interpreted as YAML key-value separators when unquoted, producing the error: services.wireguard.environment.[N]: unexpected type map[string]interface {} Wrap the affected environment entries in double quotes in all four example blocks (host + bridge in both README.md and readme-vars.yml). https://claude.ai/code/session_01QdSdYNzFJjZVymw6NNbGP5
1 parent dd2806e commit 10a48ed

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ services:
9797
environment:
9898
- PEERS=3
9999
- SERVERURL=wireguard.domain.com
100-
- IP6_SUBNET=2001:db8:b00b:420::
101-
- PEERDNS=8.8.8.8,2001:4860:4860::8888
100+
- "IP6_SUBNET=2001:db8:b00b:420::"
101+
- "PEERDNS=8.8.8.8,2001:4860:4860::8888"
102102
restart: unless-stopped
103103
```
104104

@@ -138,8 +138,8 @@ services:
138138
environment:
139139
- PEERS=3
140140
- SERVERURL=wireguard.domain.com
141-
- IP6_SUBNET=2001:db8:b00b:420::
142-
- PEERDNS=8.8.8.8,2001:4860:4860::8888
141+
- "IP6_SUBNET=2001:db8:b00b:420::"
142+
- "PEERDNS=8.8.8.8,2001:4860:4860::8888"
143143
restart: unless-stopped
144144
networks:
145145
wireguard_net:

readme-vars.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ app_setup_block: |
117117
environment:
118118
- PEERS=3
119119
- SERVERURL=wireguard.domain.com
120-
- IP6_SUBNET=2001:db8:b00b:420::
121-
- PEERDNS=8.8.8.8,2001:4860:4860::8888
120+
- "IP6_SUBNET=2001:db8:b00b:420::"
121+
- "PEERDNS=8.8.8.8,2001:4860:4860::8888"
122122
restart: unless-stopped
123123
```
124124
@@ -158,8 +158,8 @@ app_setup_block: |
158158
environment:
159159
- PEERS=3
160160
- SERVERURL=wireguard.domain.com
161-
- IP6_SUBNET=2001:db8:b00b:420::
162-
- PEERDNS=8.8.8.8,2001:4860:4860::8888
161+
- "IP6_SUBNET=2001:db8:b00b:420::"
162+
- "PEERDNS=8.8.8.8,2001:4860:4860::8888"
163163
restart: unless-stopped
164164
networks:
165165
wireguard_net:

0 commit comments

Comments
 (0)