Commit cdeae775 by 纪相明

docker支持

parent 4c8970f1
......@@ -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
......@@ -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" ]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment