-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (41 loc) · 995 Bytes
/
docker-compose.yml
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
39
40
41
42
43
44
version: '2'
services:
mysql:
image: mysql
restart: always
env_file:
- variables.env
volumes:
- ./data/mysql:/docker-entrypoint-initdb.d
nginx:
depends_on:
- phpfpm
image: nginx
ports:
- "80:80"
restart: always
working_dir: /var/www
volumes:
- ./phanbook:/var/www
- ./conf/nginx/phanbook.conf:/etc/nginx/conf.d/default.conf
links:
- phpfpm
phpfpm:
image: phalconphp/php-apache:ubuntu-16.04
restart: always
working_dir: /var/www
ports:
- "8080:80"
volumes:
- ./phanbook:/var/www
links:
- mysql
depends_on:
- mysql
composer:
restart: 'no'
image: phalconphp/composer
command: install --no-dev
working_dir: /var/www
volumes:
- ./phanbook:/var/www