-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-56.yml
67 lines (62 loc) · 1.64 KB
/
docker-compose-56.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: '3.5'
networks:
php-dev:
name: php-dev-56
driver: bridge
services:
app:
build:
context: .
dockerfile: Dockerfile-56
image: likesistemas/php-dev:56-dev
container_name: php-dev_app
environment:
- PHP_NAME=lemp
- PHP_PM=dynamic
- PHP_PM_MAX_CHILDREN=2
- PHP_PM_START_SERVERS=1
- PHP_PM_MIN_SPARE_SERVERS=1
- PHP_PM_MAX_SPARE_SERVERS=1
- PHP_PM_MAX_REQUESTS=500
- DB_HOST=mysql
- CODECOMMIT_HOST=${CODECOMMIT_HOST:-git-codecommit.us-east-1.amazonaws.com}
- GITHUB_TOKEN=$GITHUB_TOKEN
- CODECOMMIT_USER=$CODECOMMIT_USER
- CODECOMMIT_PASSWORD=$CODECOMMIT_PASSWORD
volumes:
- ./www56/:/var/www/
networks:
- php-dev
links:
- mysql
depends_on:
- mysql
mysql:
image: mysql:5.5
command: --innodb-use-native-aio=0
volumes:
- php56-dev-mysql-data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_DATABASE=php
networks:
- php-dev
nginx:
image: likesistemas/nginx:latest
container_name: php-dev_nginx
environment:
- HOST_PHP=app
- PORTA_PHP=9000
- INDEX_FILE=index.php
ports:
- 80:80
volumes:
- ./www56/:/var/www/
links:
- app
depends_on:
- app
networks:
- php-dev
volumes:
php56-dev-mysql-data: