summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-11-04 17:22:44 -0800
committerBryan Newbold <bnewbold@robocracy.org>2018-11-07 11:15:04 -0800
commit669cb3fe63ee1d506a75cb9aea76bcbd14df31be (patch)
tree3c6e8b93d37386bf506c464690e795c9df7b3bb1
parenta257d1e85092ac1912acf942474e42555461f91b (diff)
downloadfatcat-669cb3fe63ee1d506a75cb9aea76bcbd14df31be.tar.gz
fatcat-669cb3fe63ee1d506a75cb9aea76bcbd14df31be.zip
first draft docker-compose file and README
-rw-r--r--extra/docker/README.md21
-rw-r--r--extra/docker/docker-compose.yml29
2 files changed, 50 insertions, 0 deletions
diff --git a/extra/docker/README.md b/extra/docker/README.md
new file mode 100644
index 00000000..06ff06e1
--- /dev/null
+++ b/extra/docker/README.md
@@ -0,0 +1,21 @@
+
+This docker compose file can be used for local development without needing to
+install some large dependencies. Currently it isn't *required* for core
+development (the fatcat API server and most of the web interface), and also
+doesn't bundle *all* dependencies.
+
+This requires
+
+To start docker compose (kafka, zookeeper, elasticsearch) with logging in the
+current terminal:
+
+ docker-compose up
+
+This mode is recommended for most development because the services consume a
+lot of RAM and you don't want them sticking around by accident. You can run the
+services in the background by adding the `-d` flag.
+
+TODO:
+- postgres
+- fatcatd (rust)
+- kibana
diff --git a/extra/docker/docker-compose.yml b/extra/docker/docker-compose.yml
new file mode 100644
index 00000000..bfc2eb3e
--- /dev/null
+++ b/extra/docker/docker-compose.yml
@@ -0,0 +1,29 @@
+version: '2'
+services:
+ zookeeper:
+ image: wurstmeister/zookeeper
+ ports:
+ - "2181:2181"
+ kafka:
+ #image: wurstmeister/kafka:2.11-2.0.0
+ image: wurstmeister/kafka:2.11-1.1.1
+ ports:
+ - "9092:9092"
+ environment:
+ #HOSTNAME_COMMAND: "docker info | grep ^Name: | cut -d' ' -f 2"
+ KAFKA_BROKER_ID: 1
+ KAFKA_ADVERTISED_HOST_NAME: 127.0.0.1
+ KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
+ KAFKA_CREATE_TOPICS: "fatcat-qa.changelog:1:1,fatcat-qa.release-updates:3:1:compact"
+ volumes:
+ - /var/run/docker.sock:/var/run/docker.sock
+ elasticsearch:
+ image: docker.elastic.co/elasticsearch/elasticsearch:6.4.2
+ ports:
+ - "9200:9200"
+ - "9300:9300"
+ environment:
+ cluster.name: "docker-cluster"
+ bootstrap.memory_lock: "true"
+ discovery.type: "single-node"
+ ES_JAVA_OPTS: "-Xms512m -Xmx512m"