2016-05-05 11:15:53 +03:00
|
|
|
version: '2'
|
|
|
|
services:
|
2016-05-10 01:49:50 +03:00
|
|
|
app:
|
2016-10-02 01:20:40 +03:00
|
|
|
build:
|
|
|
|
dockerfile: Dockerfile-dev
|
|
|
|
context: .
|
2016-09-16 01:28:28 +03:00
|
|
|
depends_on:
|
2016-05-10 01:49:50 +03:00
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
- rabbitmq
|
2016-05-31 21:05:18 +03:00
|
|
|
volumes:
|
|
|
|
- ./:/var/www/html/
|
|
|
|
env_file: .env
|
2016-05-10 01:49:50 +03:00
|
|
|
|
2016-05-05 11:15:53 +03:00
|
|
|
web:
|
|
|
|
build: ./docker/nginx
|
|
|
|
volumes_from:
|
|
|
|
- app
|
2016-09-16 01:28:28 +03:00
|
|
|
links:
|
|
|
|
- app:php
|
|
|
|
env_file: .env
|
2016-09-15 18:55:30 +03:00
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- nginx-proxy
|
2016-05-02 11:01:38 +03:00
|
|
|
|
2016-05-05 11:15:53 +03:00
|
|
|
db:
|
2016-05-10 01:49:50 +03:00
|
|
|
build: ./docker/mariadb
|
2016-09-16 01:28:28 +03:00
|
|
|
env_file: .env
|
2016-10-02 01:20:40 +03:00
|
|
|
volumes:
|
|
|
|
- ./data/mysql:/var/lib/mysql
|
2016-05-05 11:15:53 +03:00
|
|
|
|
|
|
|
redis:
|
2016-10-02 01:20:40 +03:00
|
|
|
image: redis:3.0-alpine
|
|
|
|
volumes:
|
|
|
|
- ./data/redis:/data
|
2016-05-05 11:15:53 +03:00
|
|
|
|
|
|
|
rabbitmq:
|
2016-10-02 01:20:40 +03:00
|
|
|
image: rabbitmq:3.6-management
|
2016-09-16 01:28:28 +03:00
|
|
|
env_file: .env
|
2016-10-02 01:20:40 +03:00
|
|
|
environment:
|
|
|
|
- VIRTUAL_HOST=rabbitmq.account.ely.by.local
|
|
|
|
- VIRTUAL_PORT=15672
|
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- nginx-proxy
|
2016-05-12 23:28:23 +03:00
|
|
|
|
|
|
|
phpmyadmin:
|
|
|
|
build: ./docker/phpmyadmin
|
|
|
|
environment:
|
|
|
|
- PMA_ARBITRARY=1
|
|
|
|
- PMA_USER=root
|
|
|
|
- PMA_PASSWORD=
|
2016-10-02 01:20:40 +03:00
|
|
|
- VIRTUAL_HOST=pma.account.ely.by.local
|
2016-09-16 01:28:28 +03:00
|
|
|
depends_on:
|
2016-05-12 23:28:23 +03:00
|
|
|
- db
|
2016-10-02 01:20:40 +03:00
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- nginx-proxy
|
2016-09-15 18:55:30 +03:00
|
|
|
|
|
|
|
networks:
|
|
|
|
nginx-proxy:
|
|
|
|
external:
|
|
|
|
name: nginx-proxy
|