diff --git a/Details b/Details new file mode 100644 index 0000000..bba7d3f --- /dev/null +++ b/Details @@ -0,0 +1,17 @@ +Uparxei custom css gia to vuetable poy prepei na lifthei upopsin se periptwsh pou treksei +se allo termatiko + +// kill docker if container bugs +sudo systemctl restart docker.socket docker.service +docker rm -f + +//kill a process by id +lsof -i:8080 + +kill $(lsof -t -i:8080) + +kill -9 $(lsof -t -i:8080) + + +fuser 3000/tcp +fuser -k 8080/tcp \ No newline at end of file diff --git a/WriteToMongo b/WriteToMongo new file mode 160000 index 0000000..5a48370 --- /dev/null +++ b/WriteToMongo @@ -0,0 +1 @@ +Subproject commit 5a483700b9463acaa38dc50230515c53aa509521 diff --git a/ddocker.sh b/ddocker.sh new file mode 100755 index 0000000..8a2bb67 --- /dev/null +++ b/ddocker.sh @@ -0,0 +1,5 @@ +sudo rm -rf /var/lib/docker /etc/docker +sudo rm /etc/apparmor.d/docker +sudo groupdel docker +sudo rm -rf /var/run/docker.sock +sudo rm -rf /usr/local/bin/docker-compose \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..24c3c39 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,113 @@ +version: "3.3" + +services: + redisserver: + #image: hub.swarmlab.io:5480/playground-redisserver:latest + container_name: redisserver + depends_on: + - writetomongo + logging: + driver: "fluentd" + options: + fluentd-async-connect: "true" + tag: mongo.redis + image: redis:6.0.9-alpine + ports: + - "6379:6379" + networks: + playground-net: + 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: + 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: + # 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 + depends_on: + - writetomongo + logging: + driver: "fluentd" + options: + fluentd-async-connect: "true" + tag: mongo.dummy + build: ./dummyservice + image: dummyservice:latest + ports: + - "3001:3001" + volumes: + - ./dummyservice:/usr/src/app + links: + - mongo + networks: + playground-net: + # ---- fluentd service ---- + mongo: + container_name: mongo + logging: + driver: "fluentd" + options: + fluentd-async-connect: "true" + tag: mongo.mongo + image: mongo + expose: + - 27017 + ports: + - "27017:27017" + networks: + playground-net: + +volumes: + fluent: + readmongo: + dummy: + +networks: + playground-net: diff --git a/dummyservice b/dummyservice new file mode 160000 index 0000000..b67f60b --- /dev/null +++ b/dummyservice @@ -0,0 +1 @@ +Subproject commit b67f60bbed66e8b4198a549a6600ae11e861bbde diff --git a/fluentd.yml b/fluentd.yml new file mode 100644 index 0000000..9a1bc08 --- /dev/null +++ b/fluentd.yml @@ -0,0 +1,22 @@ +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 new file mode 100644 index 0000000..cade6a8 --- /dev/null +++ b/mongo.yml @@ -0,0 +1,32 @@ +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/playground-client b/playground-client new file mode 160000 index 0000000..5be6c55 --- /dev/null +++ b/playground-client @@ -0,0 +1 @@ +Subproject commit 5be6c5580d704c57798676d2b463ee1eba22e0a8 diff --git a/readmongo b/readmongo new file mode 160000 index 0000000..8a9a6bd --- /dev/null +++ b/readmongo @@ -0,0 +1 @@ +Subproject commit 8a9a6bd8da5cf8fc2850dfa7684bc98e5f043ddf diff --git a/runw.sh b/runw.sh new file mode 100755 index 0000000..e8ec585 --- /dev/null +++ b/runw.sh @@ -0,0 +1,2 @@ +cd playground-client +npm run serve \ No newline at end of file diff --git a/terminate_all.sh b/terminate_all.sh new file mode 100755 index 0000000..33f69b2 --- /dev/null +++ b/terminate_all.sh @@ -0,0 +1,5 @@ +sudo fuser -k 3000/tcp +sudo fuser -k 6379/tcp +sudo fuser -k 27017/tcp +sudo fuser -k 24224/tcp +sudo fuser -k 24224/udp \ No newline at end of file diff --git a/test.vue b/test.vue new file mode 100644 index 0000000..af14e5c --- /dev/null +++ b/test.vue @@ -0,0 +1,658 @@ + + + \ No newline at end of file