Refactor docker-compose services to use individual Dockerfiles (#20)

* Initial plan

* Refactor services into individual Dockerfiles

Co-authored-by: velocitatem <60182044+velocitatem@users.noreply.github.com>

* Add EXPOSE directives to all Dockerfiles with port documentation

Co-authored-by: velocitatem <60182044+velocitatem@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: velocitatem <60182044+velocitatem@users.noreply.github.com>
This commit is contained in:
Copilot
2025-11-12 16:11:50 +01:00
committed by Daniel Rosel
parent a8ea68609c
commit ea11539f7d
5 changed files with 31 additions and 4 deletions

View File

@@ -1,7 +1,9 @@
services:
redis:
container_name: "PHANTOM-redis"
image: redis:7-alpine
build:
context: ./docker
dockerfile: Redis.dockerfile
ports:
- "${REDIS_PORT:-6378}:6379"
volumes:
@@ -9,7 +11,9 @@ services:
restart: unless-stopped
zookeeper:
container_name: "PHANTOM-zookeeper"
image: confluentinc/cp-zookeeper:latest
build:
context: ./docker
dockerfile: Zookeeper.dockerfile
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ports:
@@ -17,7 +21,9 @@ services:
kafka:
container_name: "PHANTOM-kafka"
image: confluentinc/cp-kafka:7.5.0
build:
context: ./docker
dockerfile: Kafka.dockerfile
depends_on:
- zookeeper
environment:
@@ -36,7 +42,9 @@ services:
redpanda-console:
container_name: "PHANTOM-redpanda-console"
image: docker.redpanda.com/redpandadata/console:latest
build:
context: ./docker
dockerfile: RedpandaConsole.dockerfile
depends_on:
- kafka
environment: