fix infinite loop
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
FROM nginx:1.25-alpine
|
||||||
|
COPY docker-nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
+3
-2
@@ -1,10 +1,11 @@
|
|||||||
services:
|
services:
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx:1.25-alpine
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile.nginx
|
||||||
ports:
|
ports:
|
||||||
- "80"
|
- "80"
|
||||||
volumes:
|
volumes:
|
||||||
- ./docker-nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
|
||||||
- app-public:/var/www/html/public:ro
|
- app-public:/var/www/html/public:ro
|
||||||
- app-storage:/var/www/html/storage:ro
|
- app-storage:/var/www/html/storage:ro
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ try {
|
|||||||
|
|
||||||
if [ "$TABLE_COUNT" = "0" ]; then
|
if [ "$TABLE_COUNT" = "0" ]; then
|
||||||
echo "Database is empty. Importing humicpro_aigo.sql..."
|
echo "Database is empty. Importing humicpro_aigo.sql..."
|
||||||
mysql -h mysql -u "${DB_USERNAME}" -p"${DB_PASSWORD}" "${DB_DATABASE}" < /var/www/html/humicpro_aigo.sql
|
mysql -h mysql --ssl=0 -u "${DB_USERNAME}" -p"${DB_PASSWORD}" "${DB_DATABASE}" < /var/www/html/humicpro_aigo.sql
|
||||||
echo "Import complete."
|
echo "Import complete."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user