-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-83.yml
79 lines (74 loc) · 1.67 KB
/
docker-compose-83.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
75
76
77
78
79
version: '3.5'
networks:
php:
name: php
driver: bridge
services:
app:
build:
context: .
dockerfile: Dockerfile-80
args:
- PHP_VERSION=8.3-fpm
image: likesistemas/php:83-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
- SHOW_ERRORS=true
- CODECOMMIT_HOST=${CODECOMMIT_HOST:-git-codecommit.us-east-1.amazonaws.com}
- GITHUB_TOKEN=$GITHUB_TOKEN
- CODECOMMIT_USER=$CODECOMMIT_USER
- CODECOMMIT_PASSWORD=$CODECOMMIT_PASSWORD
- JIT=true
- OPCACHE_PRELOAD=/var/www/preloader.php
volumes:
- ./www80/:/var/www/
- ./events/:/var/events/
networks:
- php
links:
- mysql
depends_on:
- mysql
mysql:
image: mysql:5.5
command: --innodb-use-native-aio=0
volumes:
- php-mysql-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=php_app
- PORTA_PHP=9000
- INDEX_FILE=index.php
ports:
- 80:80
volumes:
- ./www80/:/var/www/
links:
- app
depends_on:
- app
networks:
- php
volumes:
php-mysql-data: