diff --git a/app/composer.json b/app/composer.json index faeef458a002bc11b4480ed275d09c72f5748a50..2677425c6e5bbdf9cab641d1d05c699eb18e036e 100644 --- a/app/composer.json +++ b/app/composer.json @@ -12,6 +12,7 @@ "doctrine/doctrine-migrations-bundle": "^3.3", "doctrine/orm": "^3.2", "lexik/jwt-authentication-bundle": "^3.0", + "symfony/cache": "7.0.*", "symfony/console": "7.0.*", "symfony/dotenv": "7.0.*", "symfony/filesystem": "7.0.*", diff --git a/app/composer.lock b/app/composer.lock index 052f7e2fb444c7b18e9b24fbcb65dd7c12f33564..0e49da842a6f2aad1e3a634a007bd11a00a01ce1 100644 --- a/app/composer.lock +++ b/app/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "7018f5f5f0423a379c2210e801c38f64", + "content-hash": "9ef02607d8522e77f2ce17f078546adb", "packages": [ { "name": "doctrine/cache", @@ -1800,16 +1800,16 @@ }, { "name": "symfony/cache", - "version": "v7.0.7", + "version": "v7.0.8", "source": { "type": "git", "url": "https://github.com/symfony/cache.git", - "reference": "48e3508338987d63b0114a00c208c4cbb76e5303" + "reference": "0070bd599ab52c8dc87fa7b782810cba4fde9d06" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/cache/zipball/48e3508338987d63b0114a00c208c4cbb76e5303", - "reference": "48e3508338987d63b0114a00c208c4cbb76e5303", + "url": "https://api.github.com/repos/symfony/cache/zipball/0070bd599ab52c8dc87fa7b782810cba4fde9d06", + "reference": "0070bd599ab52c8dc87fa7b782810cba4fde9d06", "shasum": "" }, "require": { @@ -1876,7 +1876,7 @@ "psr6" ], "support": { - "source": "https://github.com/symfony/cache/tree/v7.0.7" + "source": "https://github.com/symfony/cache/tree/v7.0.8" }, "funding": [ { @@ -1892,7 +1892,7 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:29:19+00:00" + "time": "2024-05-31T14:55:39+00:00" }, { "name": "symfony/cache-contracts", diff --git a/compose.yaml b/compose.yaml index 9de3d82ff8ced1c2f1aa384c356aaec0d6e6bbac..0b9b0e89dbba2a9d5a532573bd8ce78b919d35e0 100644 --- a/compose.yaml +++ b/compose.yaml @@ -69,5 +69,41 @@ services: MP_SMTP_AUTH_ALLOW_INSECURE: 1 restart: unless-stopped + redis: + container_name: ${CONTAINER_NAME}-redis + image: redis:6.2-alpine + restart: unless-stopped + ports: + - '6379:6379' + command: redis-server --save 20 1 --loglevel warning + volumes: + - redis:/data + + zookeeper: + container_name: ${CONTAINER_NAME}-zookeeper + image: confluentinc/cp-zookeeper:latest + environment: + ZOOKEEPER_CLIENT_PORT: 2181 + ZOOKEEPER_TICK_TIME: 2000 + ports: + - 22181:2181 + + kafka: + container_name: ${CONTAINER_NAME}-kafka + image: confluentinc/cp-kafka:latest + depends_on: + - zookeeper + ports: + - 29092:29092 + environment: + KAFKA_BROKER_ID: 1 + KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 + KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:29092 + KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT + KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT + KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 + volumes: + redis: + driver: local sqldata: