mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -06:00
commit
84dce14077
@ -35,8 +35,6 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
database:
|
database:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
env_file: .env
|
|
||||||
|
|
||||||
|
|
||||||
# Database Server
|
# Database Server
|
||||||
database:
|
database:
|
||||||
@ -59,4 +57,4 @@ services:
|
|||||||
retries: 10
|
retries: 10
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
db-data: ~
|
db-data: ~
|
||||||
|
|||||||
@ -19,10 +19,8 @@ fi
|
|||||||
role=${CONTAINER_ROLE:-app}
|
role=${CONTAINER_ROLE:-app}
|
||||||
|
|
||||||
if [ "$role" = "app" ]; then
|
if [ "$role" = "app" ]; then
|
||||||
if [ "$INSTALLED" = "false" ]; then
|
|
||||||
echo ".env installed is false starting installing"
|
echo ".env installed is false starting installing"
|
||||||
php artisan install --ready
|
php artisan install --ready
|
||||||
fi
|
|
||||||
exec docker-php-entrypoint "$@"
|
exec docker-php-entrypoint "$@"
|
||||||
elif [ "$role" = "queue" ]; then
|
elif [ "$role" = "queue" ]; then
|
||||||
echo "Running the queue ... "
|
echo "Running the queue ... "
|
||||||
@ -30,4 +28,4 @@ elif [ "$role" = "queue" ]; then
|
|||||||
elif [ "$role" = "websocket" ]; then
|
elif [ "$role" = "websocket" ]; then
|
||||||
echo "Running the websocket server ... "
|
echo "Running the websocket server ... "
|
||||||
php artisan websockets:serve
|
php artisan websockets:serve
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -38,7 +38,7 @@ if [[ $(which docker) && $(docker --version) ]]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cp -u .env-sail .env
|
cp .env-sail .env
|
||||||
|
|
||||||
docker compose down -v
|
docker compose down -v
|
||||||
|
|
||||||
@ -52,4 +52,4 @@ docker compose up --force-recreate
|
|||||||
#php artisan migrate --all-addons --force
|
#php artisan migrate --all-addons --force
|
||||||
|
|
||||||
#composer config http-basic.abc.aaa.com openclassify pass
|
#composer config http-basic.abc.aaa.com openclassify pass
|
||||||
#composer config repositories.repo-name composer https://abc.aaa.com
|
#composer config repositories.repo-name composer https://abc.aaa.com
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user