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
cdeae775
authored
Nov 23, 2024
by
纪相明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docker支持
parent
4c8970f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
.env.example
+2
-0
docker-compose.yml
+18
-0
No files found.
.env.example
View file @
cdeae775
...
...
@@ -66,3 +66,5 @@ MYSQL_DATA_DIR=./runtime/mysql
# 是否使用Docker版本Redis
ENABLE_REDIS_SERVICE=0
REDIS_DATA_DIR=./runtime/redis
# 是否启用schedule
ENABLE_SCHEDULE_SERVICE=0
docker-compose.yml
View file @
cdeae775
...
...
@@ -58,3 +58,21 @@ services:
networks
:
net
:
ipv4_address
:
${DOCKER_IP_PREFIX}.5
schedule
:
restart
:
always
build
:
context
:
./docker/php
volumes
:
-
.:/var/www
environment
:
-
TZ=${TZ}
# - XDEBUG_CONFIG=client_host=${DOCKER_IP_PREFIX}.1
user
:
"
${PHP_FPM_UID}"
deploy
:
replicas
:
${ENABLE_SCHEDULE_SERVICE}
networks
:
net
:
ipv4_address
:
${DOCKER_IP_PREFIX}.6
entrypoint
:
[
"
/var/www/artisan"
,
"
schedule:run"
]
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