File tree Expand file tree Collapse file tree 1 file changed +28
-8
lines changed
Expand file tree Collapse file tree 1 file changed +28
-8
lines changed Original file line number Diff line number Diff line change 1- version : ' 3'
1+ version : ' 3.7 '
22
33services :
4- fpm :
4+ FPM :
55 hostname : docker-php-fpm
66 build :
77 context : ./Dockerfiles/php-fpm
@@ -12,15 +12,24 @@ services:
1212 - ./:/var/www
1313 - ./Dockerfiles/php-fpm/php.ini:/usr/local/etc/php/php.ini
1414 - ./Dockerfiles/php-fpm/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
15- restart : on-failure
15+ deploy :
16+ resources :
17+ limits :
18+ cpus : ' 0.50'
19+ memory : 512M
20+ reservations :
21+ cpus : ' 0.25'
22+ memory : 128M
23+ restart_policy :
24+ condition : on-failure
1625 extra_hosts :
1726 - " localhost:172.16.1.50"
1827 # - "any-your-project-domain:172.16.1.50"
1928 networks :
2029 app_net :
2130 ipv4_address : 172.16.1.40
2231
23- nginx :
32+ NGINX :
2433 hostname : docker-nginx
2534 build :
2635 context : ./Dockerfiles/nginx
@@ -33,13 +42,22 @@ services:
3342 - ./Logs:/var/log/nginx
3443 - ./Dockerfiles/nginx/sites-enabled:/etc/nginx/sites-enabled
3544 depends_on :
36- - fpm
37- restart : on-failure
45+ - FPM
46+ deploy :
47+ resources :
48+ limits :
49+ cpus : ' 0.10'
50+ memory : 30M
51+ reservations :
52+ cpus : ' 0.05'
53+ memory : 10M
54+ restart_policy :
55+ condition : on-failure
3856 networks :
3957 app_net :
4058 ipv4_address : 172.16.1.50
4159
42- workspace :
60+ WORKSPACE :
4361 hostname : docker-workspace
4462 build :
4563 context : ./Dockerfiles/workspace
@@ -49,7 +67,9 @@ services:
4967 volumes :
5068 - ./:/var/www
5169 depends_on :
52- - fpm
70+ - FPM
71+ - MYSQL
72+ - MEMCACHED
5373 restart : on-failure
5474 extra_hosts :
5575 - " localhost:172.16.1.50"
You can’t perform that action at this time.
0 commit comments