Добавим сеть для суппорт nginx-proxy

This commit is contained in:
ErickSkrauch 2016-09-15 18:55:30 +03:00
parent ffd17ace2c
commit e76a8324fb

View File

@ -11,6 +11,9 @@ services:
volumes: volumes:
- ./:/var/www/html/ - ./:/var/www/html/
env_file: .env env_file: .env
networks:
- default
- nginx-proxy
web: web:
build: ./docker/nginx build: ./docker/nginx
@ -19,8 +22,12 @@ services:
volumes_from: volumes_from:
- app - app
environment: environment:
- AUTHSERVER_HOST=authserver.ely.by - AUTHSERVER_HOST=authserver.ely.by.local
- PHP_LINK=app - PHP_LINK=app
- VIRTUAL_HOST=account.ely.by.local,authserver.ely.by.local
networks:
- default
- nginx-proxy
node-dev-server: node-dev-server:
build: ./frontend build: ./frontend
@ -35,7 +42,7 @@ services:
build: . build: .
volumes: volumes:
- ./:/var/www/html/ - ./:/var/www/html/
command: ./docker/wait-for-it.sh rabbitmq:5672 -- ./yii account-queue command: ["./docker/wait-for-it.sh", "rabbitmq:5672", "--", "./yii account-queue"]
links: links:
- db - db
- redis - redis
@ -72,3 +79,8 @@ services:
- "8181:80" - "8181:80"
links: links:
- db - db
networks:
nginx-proxy:
external:
name: nginx-proxy