diff --git a/docker-compose.yml b/docker-compose.yml index 208c34a..0793415 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,6 +6,9 @@ services: container_name: webclient ports: - "8080:8080" + privileged: true + cap_add: + - NET_ADMIN networks: datacollector-net: volumes: @@ -24,18 +27,18 @@ services: # - "6379:6379" networks: datacollector-net: - writetomongo: - image: hub.swarmlab.io:5480/poc-datacollector-fluent:latest - container_name: fluentd - user: root + #writetomongo: + # image: hub.swarmlab.io:5480/poc-datacollector-fluent:latest + # container_name: fluentd + # user: root #build: ./WriteToMongo/fluent # volumes: # - ./WriteToMongo/fluent:/fluentd/etc #ports: # - "24224:24224" # - "24224:24224/udp" - networks: - datacollector-net: + # networks: + # datacollector-net: readmongo: image: hub.swarmlab.io:5480/poc-datacollector-readmongo:latest container_name: readmongo_service @@ -67,8 +70,9 @@ services: volumes: - ./dummyservice/swarmlab-app/src/run/:/home/node/dummyservice/dummyservice/swarmlab-app/src/run/ - ./WriteToMongo/fluent/fluent.conf:/fluentd/etc/fluent.conf - #links: - # - mongo + deploy: + mode: replicated + replicas: 2 networks: datacollector-net: # ---- fluentd service ----