version: '2.1' services: portal: image: duosecurity/network-gateway@sha256:359b0529b2f3a2edd494c66442a3718202013820659b0e707ea3a7fac305662a ports: - "80:80" - "443:443" container_name: network-gateway-portal depends_on: - redis sysctls: - net.core.somaxconn=32768 restart: always ulimits: nofile: soft: 65536 hard: 65536 logging: driver: json-file options: max-size: "50m" max-file: "20" admin: image: duosecurity/network-gateway@sha256:669b2051103e661f1a3a98475b8a9928ec20971f93bb566d9220c838c8dbf4ba ports: - "8443:443" container_name: network-gateway-admin depends_on: - redis restart: always ulimits: nofile: soft: 65536 hard: 65536 logging: driver: json-file options: max-size: "50m" max-file: "20" redis: image: duosecurity/network-gateway@sha256:b9bf0febead504340defecf1b917e5690357248a18f61c71ca24c3c295a0625b container_name: network-gateway-redis volumes: - data:/data restart: always ulimits: nofile: soft: 65536 hard: 65536 logging: driver: json-file options: max-size: "50m" max-file: "20" volumes: data: