-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlaravel.yml
48 lines (47 loc) · 1.17 KB
/
laravel.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
version: "3.7"
services:
#NGINX
nginx:
container_name: Laravel-App
build:
context: ./
dockerfile: ./config/laravel/nginx/Dockerfile
volumes:
- ${LARAVEL_PROJECT_DIR}:/var/www
- ./logs/laravel/nginx:/var/log/nginx
restart: always
ports:
- ${PORT_LARAVEL_APP}:80
links:
- php-fpm
networks:
development_net:
ipv4_address: ${IP_NGINX}
#PHP-FPM
php-fpm:
container_name: Php-Fpm
build:
context: ./
dockerfile: ./config/laravel/php-fpm/Dockerfile
volumes:
- ${LARAVEL_PROJECT_DIR}:/var/www
- ./config/laravel/php-fpm/laravel.ini:/usr/local/etc/php/conf.d/laravel.ini
- ./config/laravel/php-fpm/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
- ./logs/laravel/php-fpm:/var/log
environment:
- DB_USERNAME=${MYSQL_ROOT_PASSWORD}
- DB_PASSWORD=${MYSQL_USER}
- DB_HOST=${IP_MYSQL}
- DB_DATABASE=${DB_DATABASE_LARAVEL}
restart: always
ports:
- ${PORT_PHPFPM}:9000
networks:
development_net:
ipv4_address: ${IP_PHPFPM}
networks:
development_net:
ipam:
driver: default
config:
- subnet: ${SUBNET}