Jump to content
Not connected, Your IP: 216.73.216.133

Recommended Posts

In this fragment of my Docker Compose YAML file for Gluetun, I have a long line for the 'FIREWALL_VPN_INPUT_PORTS=' line which goes off the terminal screen. I'd like to split this line into multiple lines for readability.

I've not had any success trying the various YAML line splitting recipes found online, so could anyone suggest whether/how I could do this?

Of the various recipes I tried, the YAMLLINT YAML syntax checker doesn't throw any errors but the docker parser/checker does and Gluetun fails to start.

It works fine all on one line.

Thanks
 ---
   services:
       gluetun:
           container_name: airvpn
           image: qmcgaw/gluetun
           cap_add:
               - NET_ADMIN
           environment:
               - VPN_SERVICE_PROVIDER="airvpn"
               - SERVER_COUNTRIES="United Kingdom"
               - FIREWALL_VPN_INPUT_PORTS=6081,41181,4055,4056,28424,28425,6080,4080,4081,27243,27247,10720,2669,8112,....
               - TZ="Europe/London"
               - UPDATER_PERIOD=24h
           devices:
               - /dev/net/tun:/dev/net/tun
           ports:
               - 3843:4080        # http (4080)
    ....

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image

×
×
  • Create New...