services: ops-app: image: ops-app:12345678 container_name: ops-app restart: always network_mode: host deploy: resources: limits: cpus: '0.5' memory: 512M reservations: cpus: '0.1' memory: 128M logging: driver: "json-file" options: max-size: "10m" max-file: "3"