version: '2.1' services: portal: image: duosecurity/network-gateway@sha256:613d234079df2664cb88e56e9abba92ccc0092044d60610946e3382e719ce9fd environment: - "ENABLE_HA=1" - REDIS_HOST - REDIS_PORT - REDIS_AUTH - REDIS_USE_SSL ports: - "80:80" - "443:443" container_name: network-gateway-portal sysctls: - net.core.somaxconn=32768 restart: always ulimits: nofile: soft: 65536 hard: 65536 logging: driver: json-file options: max-size: "50m" max-file: "20"