name: dpl-sgw services: gateway: image: sha256:d8807a5b2442bc25ce4fbc1312354b9dcbb0f538d75181ef735f4ea980760e70 pull_policy: never container_name: dpl-subscribe-gateway restart: unless-stopped mem_limit: 160m cpus: 0.5 ports: - "127.0.0.1:18080:80" - "127.0.0.1:18443:443" environment: V2B_BACKEND: https://dp-link.net V2B_HOST: dp-link.net REAL_IP_HEADER: X-Real-IP AXISNOW_TRUSTED_IPS: 172.28.31.1 volumes: - config:/etc/nginx/subscribe - logs:/var/log/subscribe - /etc/dpl-letsencrypt:/etc/dpl-letsencrypt:ro - /var/lib/dpl-sgw/ssl:/etc/nginx/ssl:ro - ./gateway-nginx.conf:/etc/nginx/templates-src/nginx.conf:ro - ./gateway-protect.conf:/etc/nginx/templates-src/subscribe_protect.conf.template:ro networks: [dpl] logging: {driver: json-file, options: {max-size: "5m", max-file: "2"}} admin: image: sha256:31ff8ea3e8f958a835edbd1579709017da75b742ff3a5984ea59d12ea0775577 pull_policy: never container_name: dpl-subscribe-admin restart: unless-stopped mem_limit: 128m cpus: 0.5 ports: - "127.0.0.1:16444:64444" env_file: /var/lib/dpl-sgw/admin.env volumes: - config:/etc/nginx/subscribe - logs:/var/log/subscribe - /etc/dpl-letsencrypt:/etc/dpl-letsencrypt:ro - ./gateway-admin.conf:/etc/nginx/nginx.conf:ro networks: [dpl] logging: {driver: json-file, options: {max-size: "5m", max-file: "2"}} volumes: config: {name: dpl_sgw_config} logs: {name: dpl_sgw_logs} networks: dpl: name: dpl_sgw_net ipam: config: [{subnet: 172.28.31.0/24}]