diff --git a/pipeline.yml b/pipeline.yml index e8130ae..b9e8eda 100644 --- a/pipeline.yml +++ b/pipeline.yml @@ -8,10 +8,10 @@ services: ports: - "2181:2181" volumes: - - /Users/koziolk/_volumes/openfda/zookeeper-data:/bitnami + - zookeper-data:/bitnami environment: - ALLOW_ANONYMOUS_LOGIN=yes - + kafka: image: docker.io/bitnami/kafka:3 container_name: kafka @@ -22,7 +22,7 @@ services: - "9092:9092" - "9093:9093" volumes: - - /Users/koziolk/_volumes/openfda/kafka-data:/bitnami + - kafka-data:/bitnami environment: - KAFKA_BROKER_ID=1 - KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CLIENT:PLAINTEXT,EXTERNAL:PLAINTEXT @@ -41,9 +41,9 @@ services: MONGODB_ADVERTISED_HOSTNAME: mongodb MONGODB_USERNAME: openfda MONGODB_PASSWORD: openfda - MONGODB_DATABASE: openfda_test + MONGODB_DATABASE: openfda volumes: - - /Users/koziolk/_volumes/openfda/mongodb-data:/bitnami + - mongo-data:/bitnami ports: - "27017:27017" @@ -60,12 +60,12 @@ services: KAFKA_NUMBER_OF_TOPIC_PARTITIONS: 8 OPENFDA_API_BATCH_SIZE: 1000 OPENFDA_API_BATCH_READ_DELAY: 1000 - OPENFDA_API_SYNC_DATE_FROM: "2000-01-01" + OPENFDA_API_SYNC_DATE_FROM: "2021-01-01" OPENFDA_API_SYNC_DATE_TO: "2022-01-01" JAVA_TOOL_OPTIONS: -Xmx1G -Xms1G ports: - "7777:8080" - + openfda-consumer: image: koziolk/openfda-consumer:latest container_name: openfda-consumer @@ -75,13 +75,13 @@ services: - mongodb environment: KAFKA_BOOTSTRAP_SERVERS: kafka:9092 - SPRING_DATA_MONGODB_URI: mongodb://root:openfda@mongodb:27017/openfda_test?authSource=admin + SPRING_DATA_MONGODB_URI: mongodb://root:openfda@mongodb:27017/openfda?authSource=admin KAFKA_WAIT_FOR_SERVERS: 60000 KAFKA_NUMBER_OF_CONSUMERS: 8 JAVA_TOOL_OPTIONS: -Xmx1G -Xms1G ports: - "9999:8080" - + openfda-dashboard: image: koziolk/openfda-live-dashboard:latest container_name: openfda-dashboard @@ -90,8 +90,8 @@ services: - openfda-producer - openfda-consumer environment: - MONGO_URI: mongodb://root:openfda@mongodb:27017/openfda_test?authSource=admin - MONGO_DB: openfda_test + MONGO_URI: mongodb://root:openfda@mongodb:27017/openfda?authSource=admin + MONGO_DB: openfda GRAPH_REFRESH_INTERVAL: 10000 ports: - "8050:8050" @@ -107,4 +107,9 @@ services: JUPYTER_ENABLE_LAB: "yes" command: "start-notebook.sh --NotebookApp.token='openfda' --NotebookApp.password='openfda'" ports: - - "8888:8888" \ No newline at end of file + - "8888:8888" + +volumes: + zookeper-data: + kafka-data: + mongo-data: \ No newline at end of file