services: prometheus: container_name: prometheus deploy: resources: limits: memory: 256M ports: - 9090:9090 volumes: - ./prometheus.yml:/etc/prometheus/prometheus.yml - /prometheus/:/prometheus image: prom/prometheus restart: unless-stopped networks: {}