Skip to content

Commit

Permalink
Added docker-compose file for Feast
Browse files Browse the repository at this point in the history
Closes feast-dev#272

Tested by:

    $ grpc_cli ls localhost:6565
    grpc.health.v1.Health
    grpc.reflection.v1alpha.ServerReflection
    feast.core.CoreService

    $ grpc_cli ls localhost:6566
    grpc.health.v1.Health
    grpc.reflection.v1alpha.ServerReflection
    feast.serving.ServingService
  • Loading branch information
Kai Hendry committed Nov 19, 2019
1 parent 35f9537 commit 7255d30
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
version: "3.7"

services:
core:
build:
dockerfile: ./infra/docker/core/Dockerfile
context: ./
environment:
DB_HOST: db
depends_on:
- kafka
ports:
- 6565:6565

serving:
build:
dockerfile: ./infra/docker/serving/Dockerfile
context: ./
# patch host to redis (not localhost!)
volumes: ['./serving/sample_redis_config.yml:/sample_redis_config.yml']
environment:
FEAST_CORE_HOST: core
depends_on:
- core
- redis
ports:
- 6566:6566
restart: on-failure

redis:
image: redis:5-alpine

kafka:
image: confluentinc/cp-kafka:5.2.1
restart: on-failure
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
depends_on:
- zookeeper

# https://github.com/confluentinc/docker-images/blob/master/examples/fullstack/docker-compose.yml
zookeeper:
image: confluentinc/cp-zookeeper:5.2.1
environment:
ZOOKEEPER_CLIENT_PORT: 2181

db:
image: postgres:12-alpine

0 comments on commit 7255d30

Please sign in to comment.