Docker compose sysctls option

Hi,

I can’t find a way to make “sysctls” option working in a docker-compose.yml.

I’m running Docker version 18.09.2, build 6247962 on Ubuntu 18.04.2 LTS.

Here is my docker-compose.yml

container.name:
container_name: container.name
image: haugene/transmission-openvpn:latest
restart: unless-stopped
mem_limit: 1024m
sysctls:
- net.ipv6.conf.all.disable_ipv6=1
ports:
- “9091:9091”
environment:
- TZ=Europe/Paris
- PUID=1000
- PGID=1000
volumes:
- ~/container.name/vol_01:/data
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun
dns:
- 1.1.1.1
- 1.0.0.1

I’m having this error message:

ERROR: The Compose file ‘./docker-compose.yml’ is invalid because:
Unsupported config option for container.name: ‘sysctls’

Any clue ?

Regards.