Commit b1bfe4ad authored by Адлан Шамавов's avatar Адлан Шамавов
Browse files

SYM-3 | Elasticsearch

parent deacece4
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -58,3 +58,7 @@ MESSENGER_TRANSPORT_DSN=kafka://
# DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4"
DATABASE_URL="postgresql://user:password@users-db:5432/mydatabase?serverVersion=16&charset=utf8"
###< doctrine/doctrine-bundle ###

# elasticsearch
ELASTICSEARCH_URL=http://elasticsearch:9200/
###> friendsofsymfony/elastica-bundle ###
+15 −0
Original line number Diff line number Diff line
@@ -75,5 +75,20 @@ services:
    depends_on:
      - "kafka"

  elasticsearch:
    image: elasticsearch:7.17.14
    container_name: 'elasticsearch'
    environment:
      - cluster.name=docker-cluster
      - bootstrap.memory_lock=true
      - discovery.type=single-node
      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
    ulimits:
      memlock:
        soft: -1
        hard: -1
    ports:
      - 9200:9200

volumes:
  sqldata:
+1 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@
        "doctrine/doctrine-bundle": "^2.12",
        "doctrine/doctrine-migrations-bundle": "^3.3",
        "doctrine/orm": "^3.2",
        "friendsofsymfony/elastica-bundle": "^6.4",
        "koco/messenger-kafka": "^0.18.0",
        "simpod/kafka-bundle": "^0.6.3",
        "symfony/console": "7.1.*",
+883 −134

File changed.

Preview size limit exceeded, changes collapsed.

+1 −0
Original line number Diff line number Diff line
@@ -6,4 +6,5 @@ return [
    Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true],
    SimPod\KafkaBundle\SimPodKafkaBundle::class => ['all' => true],
    Koco\Kafka\KocoKafkaBundle::class => ['all' => true],
    FOS\ElasticaBundle\FOSElasticaBundle::class => ['all' => true],
];
Loading