commit f2755f13d95148b205245e4dafad3c7564a612b0 parent 3d684a65afce2cedc7915e30b3c11ab7da789ff1 Author: Xiaodong Xu <[email protected]> Date: Sat Jun 2 13:39:16 +0800 Add logging for LEMP Diffstat:
lemp/docker-compose.yml | | | 10 | ++++++++++ |
diff --git a/lemp/docker-compose.yml b/lemp/docker-compose.yml @@ -7,6 +7,11 @@ services: volumes: - ./www.conf:/usr/local/etc/php-fpm.d/www.conf - ./../../sites:/var/www/html + logging: + driver: fluentd + options: + fluentd-address: 127.0.0.1:24224 + tag: php nginx: image: nginx:stable @@ -22,6 +27,11 @@ services: - ./nginx.conf:/etc/nginx/nginx.conf - ./conf.d:/etc/nginx/conf.d - ./../../sites:/var/www/html + logging: + driver: fluentd + options: + fluentd-address: 127.0.0.1:24224 + tag: nginx mysql: image: mysql:5.7