services: ops-agent: image: ops-agent:12345678 container_name: ops-agent restart: always network_mode: host environment: - WS_URL=ws://127.0.0.1:4030 volumes: - /etc/localtime:/etc/localtime:ro - /etc/machine-id:/etc/machine-id:ro - /var/run/docker.sock:/var/run/docker.sock deploy: resources: limits: cpus: '1.0' memory: 128MB reservations: memory: 64MB logging: driver: "json-file" options: max-size: "10m" max-file: "3"