SHARE
TWEET

Untitled

a guest Jun 26th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '3'
  2.  
  3. volumes:
  4.     mongodb:
  5.  
  6. services:
  7.     nginx:
  8.         build:
  9.             context: .
  10.             dockerfile: Dockerfile.nginx
  11.         environment:
  12.             PHP_FPM_PASS: php-fpm
  13.         ports:
  14.             - "80:80"
  15.         links:
  16.             - php-fpm
  17.         volumes:
  18.             - ./:/var/www:ro
  19.  
  20.     php-fpm:
  21.         build:
  22.             context: .
  23.             dockerfile: Dockerfile.php
  24.         environment:
  25.             RABBITMQ_HOST: rabbitmq
  26.             REDIS_HOST: redis
  27.             DB_HOST: mongodb
  28.         links:
  29.             - rabbitmq
  30.             - mongodb
  31.             - redis
  32.         volumes:
  33.             - ./:/var/www
  34.  
  35.     worker:
  36.         build:
  37.             context: .
  38.             dockerfile: Dockerfile.php
  39.         environment:
  40.             RABBITMQ_HOST: rabbitmq
  41.         command:
  42.             - php
  43.             - artisan
  44.             - queue:work
  45.         links:
  46.             - rabbitmq
  47.             - mongodb
  48.             - redis
  49.         volumes:
  50.             - ./:/var/www
  51.  
  52.     rabbitmq:
  53.         image: rabbitmq:3.7-management
  54.         ports:
  55.             - "15672:15672"
  56.         environment:
  57.             RABBITMQ_DEFAULT_USER: guest
  58.             RABBITMQ_DEFAULT_PASS: guest
  59.  
  60.     mongodb:
  61.         image: mongo:3.2
  62.         environment:
  63.             - MONGO_DATA_DIR=/data/mongodb
  64.             - MONGO_LOG_DIR=/dev/null
  65.         volumes:
  66.             - mongodb:/data/mongodb
  67.         ports:
  68.             - "27017:27017"
  69.         command: mongod --smallfiles --logpath=/dev/null
  70.  
  71.         redis:
  72.             image: 4.0-alpine
  73.             ports:
  74.                 - "6379:6379"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top