скорее всего будет ошибка
$ docker stack deploy -c ./deploy/grafana/docker-compose.swarm.yml --with-registry-auth "docker stack deploy" requires exactly 1 argument. See 'docker stack deploy --help'. Usage: docker stack deploy [OPTIONS] STACK Deploy a new stack or update an existing stack
попробовал вот так еще проверить $ docker-compose -f ./deploy/grafana/docker-compose.swarm.yml config Some services (grafana) use the 'deploy' key, which will be ignored. Compose does not support 'deploy' configuration - use `docker stack deploy` to deploy to a swarm. networks: $$DEFAULT_SWARM_NETWORK: external: true services: grafana: deploy: mode: replicated placement: constraints: - node.hostname == srv-01 replicas: 1 resources: limits: memory: 128M environment: GF_INSTALL_PLUGINS: grafana-piechart-panel,jdbranham-diagram-panel,alexanderzobnin-zabbix-app,grafana-worldmap-panel GF_SECURITY_ADMIN_PASSWORD: XNW9N3ZDUpg8mpqJnVYF GF_SERVER_DOMAIN: grafana.example.com GF_USERS_ALLOW_SIGN_UP: "false" image: grafana/grafana:latest networks: grafana-net: null volumes: - /opt/grafana:/var/lib/grafana:rw version: '3.4' $ docker stack deploy prod -c ./deploy/grafana/docker-compose.swarm.yml --with-registry-auth service grafana: undefined network "grafana-net"
Обсуждают сегодня