Skip to content

Commit

Permalink
refactor: Update docker-compose.yml to use version 3 and adjust servi…
Browse files Browse the repository at this point in the history
…ce ports
  • Loading branch information
maxsonferovante committed Jul 28, 2024
1 parent 777f0d6 commit fe8e194
Showing 1 changed file with 14 additions and 22 deletions.
36 changes: 14 additions & 22 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
version: '3.9'
version: '3'

services:
api-ms:
build:
context: .
dockerfile: Dockerfile
container_name: catalog-api-ms
ports:
- "8000:8000"
networks:
- catalog_microservices_network
depends_on:
- database
- kafka
# api-ms:
# build:
# context: .
# dockerfile: Dockerfile
# container_name: catalog-api-ms
# ports:
# - "5000:5000"
# networks:
# - catalog_microservices_network
# depends_on:
# - database
database:
image: mysql:lts
container_name: database_calatog
Expand All @@ -34,13 +33,11 @@ services:
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
networks:
- catalog_microservices_network


kafka:
image: confluentinc/cp-server:7.3.0
hostname: kafka
container_name: kafka_server_microservices
container_name: kafka
depends_on:
- zookeeper
ports:
Expand All @@ -59,8 +56,6 @@ services:
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
CONFLUENT_METRICS_ENABLE: 'false'
CONFLUENT_SUPPORT_CUSTOMER_ID: 'anonymous'
networks:
- catalog_microservices_network

control-center:
image: confluentinc/cp-enterprise-control-center:7.3.0
Expand All @@ -77,9 +72,6 @@ services:
CONTROL_CENTER_MONITORING_INTERCEPTOR_TOPIC_PARTITIONS: 1
CONFLUENT_METRICS_TOPIC_REPLICATION: 1
PORT: 9021
networks:
- catalog_microservices_network



networks:
Expand Down

0 comments on commit fe8e194

Please sign in to comment.