-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdocker-compose.yml
52 lines (48 loc) · 924 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
45
46
47
48
49
50
51
52
version: '2'
services:
php:
container_name: quasar-php
build:
context: ./docker/php
environment:
- DB_CONNECTION=mysql
- DB_HOST=mysql
- DB_PORT=3306
- DB_DATABASE=app
- DB_USERNAME=app
- DB_PASSWORD=password
volumes:
- .:/app
links:
- mysql
nginx:
container_name: quasar-nginx
build:
context: ./docker/nginx
ports:
- 127.0.0.1:8000:80
volumes:
- .:/app
links:
- php
mysql:
container_name: quasar-mysql
image: mysql:5.7
environment:
- MYSQL_DATABASE=app
- MYSQL_ROOT_PASSWORD=root
- MYSQL_USER=app
- MYSQL_PASSWORD=password
ports:
- 8571:3306
volumes:
- app-db:/var/lib/mysql
composer:
container_name: quasar-composer
image: composer/composer
volumes_from:
- php
working_dir: /app
command: -V
volumes:
app-db: