Skip to content

Commit

Permalink
update volumes definition in pipeline.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
koziolk committed Jan 27, 2022
1 parent 374c355 commit 4898118
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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"

Expand All @@ -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
Expand All @@ -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
Expand All @@ -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"
Expand All @@ -107,4 +107,9 @@ services:
JUPYTER_ENABLE_LAB: "yes"
command: "start-notebook.sh --NotebookApp.token='openfda' --NotebookApp.password='openfda'"
ports:
- "8888:8888"
- "8888:8888"

volumes:
zookeper-data:
kafka-data:
mongo-data:

0 comments on commit 4898118

Please sign in to comment.