Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- nginx:
- build:
- context: ./nginx
- args:
- - PHP_UPSTREAM=php-fpm
- volumes_from:
- - volumes_source
- volumes:
- - ./logs/nginx/:/var/log/nginx
- links:
- - php-fpm
- ports:
- - "80:80"
- - "443:443"
- php-fpm:
- build:
- context: ./php-fpm
- volumes_from:
- - volumes_source
- postgres:
- build: ./postgres
- volumes_from:
- - volumes_data
- environment:
- POSTGRES_DB: our_groovy_db
- POSTGRES_USER: mogley
- POSTGRES_PASSWORD: not_telling
- …more containers
- ### Laravel Application Code Container ######################
- volumes_source:
- image: tianon/true
- volumes:
- - ../base/:/var/www/laravel
- ### Data Container ################################
- volumes_data:
- image: tianon/true
- volumes:
- - ./data/postgres:/var/lib/postgresql/data
- - ./data/rabbitmq:/var/lib/rabbitmq/mnesia
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement