-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
53 lines (49 loc) · 1.06 KB
/
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
53
version: '2.2'
services:
nginx:
build:
context: .
dockerfile: docker/Dockerfile.nginx
args:
PHP_FPM_SERVER: php
PHP_FPM_PORT: 9000
ports:
- ${DOCKER_NGINX_EXTERNAL_PORT-8000}:80
depends_on:
- php
links:
- php
volumes:
- .:/var/www/
php:
build:
context: .
dockerfile: docker/Dockerfile
args:
XDEBUG: "true"
volumes:
- .:/var/www/
- ./docker/php.ini:/usr/local/etc/php/conf.d/php.ini
environment:
APP_ENV: local
links:
- mysql
- redis
redis:
image: redis:5.0.6
ports:
- ${DOCKER_REDIS_EXTERNAL_PORT-6379}:6379
mysql:
image: mysql:5.7
volumes:
- mysqldb:/var/lib/mysql
environment:
MYSQL_DATABASE: app_db
MYSQL_ROOT_PASSWORD: secret
MYSQL_ALLOW_EMPTY_PASSWORD: "true"
ports:
- ${DOCKER_MYSQL_EXTERNAL_PORT-3309}:3306
command: [ 'mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci' ]
volumes:
mysqldb:
driver: local