-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-56.yml
74 lines (69 loc) · 1.54 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
68
69
70
71
72
73
74
version: '3.5'
networks:
php:
name: php
driver: bridge
services:
app:
build:
context: .
dockerfile: Dockerfile-56
image: likesistemas/php:56-dev
container_name: php_app
command: chmod +x /var/www/create-temp.sh && /var/www/create-temp.sh
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
- INSTALL_COMPOSER=true
- COMPOSER_INSTALL=true
- DB_MIGRATE=true
- DB_SEED=true
- 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/
- ./events/:/var/events/
networks:
- php
links:
- mysql
depends_on:
- mysql
mysql:
image: mysql:5.5
command: --innodb-use-native-aio=0
volumes:
- mysql56-data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_DATABASE=php
networks:
- php
nginx:
image: likesistemas/nginx:latest
container_name: php_nginx
restart: on-failure
environment:
- HOST_PHP=app
- PORTA_PHP=9000
- INDEX_FILE=index.php
ports:
- 80:80
volumes:
- ./www/:/var/www/public/
links:
- app
depends_on:
- app
networks:
- php
volumes:
mysql56-data: