This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker volume create pg_conf | |
| docker volume create pg_log | |
| docker volume create pg_data | |
| docker network rm LocalPgNetwork | |
| docker network create LocalPgNetwork | |
| docker run -d --name postgress_94 --hostname postgress-host --network LocalPgNetwork -p 5432:5432 -v pg_conf:/etc/postgresql -v pg_log:/var/log/postgresql -v pg_data:/var/lib/postgresql/data -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=root postgres:9.4.1 | |
| docker run -d --name pgadmin --hostname pgadmin-host --network LocalPgNetwork -p 80:80 -e [email protected] -e PGADMIN_DEFAULT_PASSWORD=root -d dpage/pgadmin4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker volume create zookeeper-data-storage | |
| docker volume create zookeeper-txn-logs-storage | |
| docker volume create kafka-data-storage | |
| docker network rm LocalKafkaNetwork | |
| docker network create LocalKafkaNetwork | |
| docker run -d --name zookeeper --hostname zookeeper-host --network LocalKafkaNetwork -p 2181 -v zookeeper-data-storage:/var/lib/zookeeper/data -v zookeeper-txn-logs-storage:/var/lib/zookeeper/log zookeeper | |
| docker run -d --name kafka --hostname kafka-host --network LocalKafkaNetwork -p 9094:9094 -e KAFKA_ZOOKEEPER_CONNECT=zookeeper-host:2181 -e KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=INTERNAL:PLAINTEXT,OUTSIDE:PLAINTEXT -e KAFKA_INTER_BROKER_LISTENER_NAME=INTERNAL -e KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1 -e KAFKA_ADVERTISED_LISTENERS=INTERNAL://kafka-host:9092,OUTSIDE://localhost:9094 -e KAFKA_LISTENERS=INTERNAL://0.0.0.0:9092,OUTSIDE://0.0.0.0:9094 -v kafka-data-storage:/var/lib/kafka/data confluentinc/cp-kafka |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gf |