diff --git a/.env.example b/.env.example index 29b1fa6..0cba496 100644 --- a/.env.example +++ b/.env.example @@ -1,2 +1,5 @@ HOSTNAME=localhost + +# PORTS KAFKA_PORT=9092 +REDIS_PORT=6377 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..845959d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +**/.env \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index a5bcf9a..5d04139 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,12 @@ services: + redis: + container_name: "PHANTOM-redis" + image: redis:7-alpine + ports: + - "${REDIS_PORT:-6378}:6379" + volumes: + - phantom_redis_data:/data + restart: unless-stopped zookeeper: container_name: "PHANTOM-zookeeper" image: confluentinc/cp-zookeeper:latest @@ -25,3 +33,4 @@ services: volumes: phantom_kafka_data: + phantom_redis_data: