Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵增煜
/
tzt-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
09c4c558
authored
Nov 23, 2024
by
纪相明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
248a7627
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
docker-compose.yml
+3
-5
docker/php/crontab
+4
-0
docker/redis/redis.conf
+2
-0
No files found.
docker-compose.yml
View file @
09c4c558
...
...
@@ -58,7 +58,7 @@ services:
networks
:
net
:
ipv4_address
:
${DOCKER_IP_PREFIX}.5
schedule
:
crontab
:
restart
:
always
build
:
context
:
./docker/php
...
...
@@ -67,12 +67,10 @@ services:
environment
:
-
TZ=${TZ}
# - XDEBUG_CONFIG=client_host=${DOCKER_IP_PREFIX}.1
user
:
"
${PHP_FPM_UID}"
deploy
:
replicas
:
${ENABLE_
SCHEDULE
_SERVICE}
replicas
:
${ENABLE_
CRONTAB
_SERVICE}
networks
:
net
:
ipv4_address
:
${DOCKER_IP_PREFIX}.6
entrypoint
:
[
"
/var/www/artisan"
,
"
schedule:run"
]
[
"
cron"
,
"
-f"
]
docker/php/crontab
View file @
09c4c558
...
...
@@ -19,3 +19,7 @@ TZ=Asia/Shanghai
#
# 每分钟检测一次服务是否正常运行
* * * * * root /bin/date "+%Y-%m-%d %H:%M:%S" >> /tmp/test-crontab.log 2>&1
* * * * * root /var/www/artisan schedule:run >> /tmp/schedule-run.log 2>&1
docker/redis/redis.conf
View file @
09c4c558
daemonize
no
timeout
0
databases
16
requirepass
123456
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment