docker add cleanup service

This commit is contained in:
xiaomlove
2025-05-13 18:21:14 +07:00
parent 55a30939dd
commit 3e45bc43ad
2 changed files with 31 additions and 0 deletions

View File

@@ -56,6 +56,25 @@ services:
max-file: "3"
networks:
- appnet
-
cleanup:
image: nexusphp_php
container_name: nexusphp-cleanup
environment:
SERVICE_NAME: cleanup
volumes:
- .:/var/www/html
depends_on:
- php
- redis
- mysql
logging:
driver: "json-file"
options:
max-size: "1024m"
max-file: "3"
networks:
- appnet
openresty:
build: