From 1ca8b32edd4db00778d7607ae1a6c91a23fbcdb8 Mon Sep 17 00:00:00 2001 From: lefos Date: Tue, 26 Oct 2021 22:17:32 +0300 Subject: [PATCH] asd --- docker-compose.yml | 20 -------------------- files/ansible.cfg | 0 fluentd.yml | 22 ---------------------- mongo.yml | 32 -------------------------------- monitorall.yml.sh | 2 +- 5 files changed, 1 insertion(+), 75 deletions(-) create mode 100644 files/ansible.cfg delete mode 100644 fluentd.yml delete mode 100644 mongo.yml diff --git a/docker-compose.yml b/docker-compose.yml index 14d349c..f005bcd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -48,26 +48,6 @@ services: - mongo networks: playground-net: - # readmongo: - # container_name: readmongo_service - # restart: always - # depends_on: - # - writetomongo - # logging: - # driver: "fluentd" - # options: - # fluentd-async-connect: "true" - # tag: mongo.access - # build: ./readmongo - # image: readmongo:latest - # ports: - # - "3000:3000" - # volumes: - # - ./readmongo:/usr/src/app - # links: - # - mongo - # networks: - # playground-net: dummy: container_name: dummy_service restart: always diff --git a/files/ansible.cfg b/files/ansible.cfg new file mode 100644 index 0000000..e69de29 diff --git a/fluentd.yml b/fluentd.yml deleted file mode 100644 index 9a1bc08..0000000 --- a/fluentd.yml +++ /dev/null @@ -1,22 +0,0 @@ -version: "3.8" - -services: - writetomongo: - image: writemongo:latest - container_name: fluentd - user: root - build: ./WriteToMongo/fluent - volumes: - - ./WriteToMongo/fluent:/fluentd/etc - ports: - - "24224:24224" - - "24224:24224/udp" - networks: - playground-net: - -volumes: - fluent: - # src: - -networks: - playground-net: diff --git a/mongo.yml b/mongo.yml deleted file mode 100644 index cade6a8..0000000 --- a/mongo.yml +++ /dev/null @@ -1,32 +0,0 @@ -version: "3.8" - -services: - #fluentd service - writetomongo: - image: writemongo:latest - container_name: fluentd - user: root - build: ./WriteToMongo/fluent - volumes: - - ./WriteToMongo/fluent:/fluentd/etc - ports: - - "24224:24224" - - "24224:24224/udp" - networks: - playground-net: - mongo: - container_name: mongo - image: mongo - expose: - - 27017 - ports: - - "27017:27017" - networks: - playground-net: - -volumes: - fluent: - # src: - -networks: - playground-net: diff --git a/monitorall.yml.sh b/monitorall.yml.sh index 0770bcf..3529acc 100644 --- a/monitorall.yml.sh +++ b/monitorall.yml.sh @@ -18,7 +18,7 @@ echo "[service]" > /project/courses/Thesis/inventory.yml # include master or not echo $ip4 >> /project/courses/Thesis/inventory.yml -ansible-playbook -u docker -i inventory.yml fluentd.yml -f 5 --ask-pass --ask-become-pass +# ansible-playbook -u docker -i inventory.yml fluentd.yml -f 5 --ask-pass --ask-become-pass # 1st make sudo without password # run with keys #ansible-playbook -u docker -i inventory.yml fluentd.yml -f 5 --private-key=/home/docker/.ssh/id_rsa \ No newline at end of file