-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (38 loc) · 842 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (38 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
version: '2'
services:
nginx:
image: evild/alpine-nginx:1.9.15-openssl
container_name: bcomp_nginx
links:
- php
volumes:
- ./app:/var/www/html/:ro
- ./docker/nginx/conf/nginx.conf:/etc/nginx/conf/nginx.conf:ro
- ./docker/nginx/conf.d:/etc/nginx/conf.d:ro
ports:
- 80:80
- 443:443
php:
image: hayko18/php7-mongo
container_name: bcomp_php
volumes:
- ./app:/var/www/html
composer:
restart: 'no'
image: composer/composer:php7
working_dir: /app
command: install
volumes:
- ./app/:/app
webapp:
container_name: webapp
build:
context: .
dockerfile: 'docker/Dockerfile'
volumes:
- ./webapp:/usr/src/app
- /usr/src/app/node_modules
ports:
- 3000:3000
environment:
- NODE_ENV=development