docker-compose-agent.yml 560 B

123456789101112131415161718192021222324
  1. services:
  2. ops-agent:
  3. image: ops-agent:12345678
  4. container_name: ops-agent
  5. restart: always
  6. network_mode: host
  7. environment:
  8. - WS_URL=ws://127.0.0.1:4030
  9. volumes:
  10. - /etc/localtime:/etc/localtime:ro
  11. - /etc/machine-id:/etc/machine-id:ro
  12. - /var/run/docker.sock:/var/run/docker.sock
  13. deploy:
  14. resources:
  15. limits:
  16. cpus: '1.0'
  17. memory: 128MB
  18. reservations:
  19. memory: 64MB
  20. logging:
  21. driver: "json-file"
  22. options:
  23. max-size: "10m"
  24. max-file: "3"