-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphp_5.yml
49 lines (49 loc) · 1.14 KB
/
php_5.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
version: '3'
services:
#PHP
php5-fpm:
container_name: Php5-Fpm
build:
context: ./
dockerfile: ./config/php_5/php-fpm/Dockerfile
args:
TEXT_ENV: ${NODE_ENV}
volumes:
- ${PHP_PROJECT_DIR}:/var/www
- ./config/php_5/php-fpm/php5.ini:/usr/local/etc/php/conf.d/php5.ini
- ./logs/php_5/php-fpm:/var/log
restart: always
environment:
NODE_ENV: production
networks:
development_net:
ipv4_address: ${IP_PHP5_NGINX}
#Nginx
nginx-php5:
container_name: Php5-App
build:
context: ./
dockerfile: ./config/php_5/nginx/Dockerfile
volumes:
- ${PHP_PROJECT_DIR}:/var/www
- ./logs/php_5/nginx:/var/log/nginx
- ./config/php_5/nginx/nginx.conf:/etc/nginx/nginx.conf
depends_on:
- php5-fpm
links:
- php5-fpm
restart: always
ports:
- ${PORT_PHP5_APP}:80
- 443:443
environment:
NODE_ENV: ${PHP_PROJECT_DIR}
networks:
development_net:
ipv4_address: ${IP_PHP5FPM}
networks:
development_net:
ipam:
driver: default
config:
- subnet: ${SUBNET}