Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.11 KB | None | 0 0
  1. version: '2'
  2.  
  3. services:
  4. nginx:
  5.         build:
  6.             context: ./nginx
  7.             args:
  8.                - PHP_UPSTREAM=php-fpm
  9.         volumes_from:
  10.            - volumes_source
  11.         volumes:
  12.            - ./logs/nginx/:/var/log/nginx
  13.         links:
  14.            - php-fpm
  15.         ports:
  16.            - "80:80"
  17.             - "443:443"
  18.  
  19. php-fpm:
  20.         build:
  21.             context: ./php-fpm
  22.         volumes_from:
  23.            - volumes_source
  24.  
  25. postgres:
  26.         build: ./postgres
  27.         volumes_from:
  28.            - volumes_data
  29.         environment:
  30.             POSTGRES_DB: our_groovy_db
  31.             POSTGRES_USER: mogley
  32.             POSTGRES_PASSWORD: not_telling
  33.  
  34. …more containers
  35.  
  36. ### Laravel Application Code Container ######################
  37.  
  38.     volumes_source:
  39.         image: tianon/true
  40.         volumes:
  41.            - ../base/:/var/www/laravel
  42.  
  43. ### Data Container ################################
  44.  
  45.     volumes_data:
  46.         image: tianon/true
  47.         volumes:
  48.            - ./data/postgres:/var/lib/postgresql/data
  49.             - ./data/rabbitmq:/var/lib/rabbitmq/mnesia
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement