Permalink
Browse files

Step 3. Setup the Messenger Component

  • Loading branch information...
nielsvandermolen committed Oct 30, 2018
1 parent 7b29d70 commit e5a7128d60c355169e38ff74260c75320bd8b5ee
@@ -3,9 +3,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
git \
zlib1g-dev \
libxml2-dev \
librabbitmq-dev \
&& docker-php-ext-install \
pdo_mysql \
zip
zip \
&& pecl install amqp \
&& docker-php-ext-enable amqp # Enable the Extension
RUN curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer
COPY . /var/www/project
WORKDIR /var/www/project/
@@ -7,6 +7,7 @@ services:
dockerfile: Dockerfile-php # Specify the name of the Dockerfile
environment: # You can use this section to set environment variables. But you can also use the .env file.
- DATABASE_URL=mysql://root:root@db:3306/project_db # Connection string for the database.
- MESSENGER_TRANSPORT_DSN=amqp://guest:guest@rabbitmq:5672/%2f/messages # AMQP connection string
volumes:
- ./project/:/var/www/project/ # Location of the project for php-fpm. Note this should be the same for NGINX.
networks:
@@ -8,3 +8,7 @@ APP_SECRET=e5b4e6f29f5857791445a0decfe6c605
#TRUSTED_PROXIES=127.0.0.1,127.0.0.2
#TRUSTED_HOSTS=localhost,example.com
###< symfony/framework-bundle ###
###> symfony/messenger ###
# MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages
###< symfony/messenger ###
@@ -5,9 +5,11 @@
"php": "^7.1.3",
"ext-ctype": "*",
"ext-iconv": "*",
"symfony/amqp-pack": "^1.0",
"symfony/console": "*",
"symfony/flex": "^1.1",
"symfony/framework-bundle": "*",
"symfony/messenger": "*",
"symfony/yaml": "*"
},
"require-dev": {
Oops, something went wrong.

0 comments on commit e5a7128

Please sign in to comment.