fix infinite loop

This commit is contained in:
2026-06-04 21:36:12 +07:00
parent e3666a13c1
commit 385166accd
3 changed files with 6 additions and 3 deletions
+2
View File
@@ -0,0 +1,2 @@
FROM nginx:1.25-alpine
COPY docker-nginx.conf /etc/nginx/conf.d/default.conf
+3 -2
View File
@@ -1,10 +1,11 @@
services:
nginx:
image: nginx:1.25-alpine
build:
context: .
dockerfile: Dockerfile.nginx
ports:
- "80"
volumes:
- ./docker-nginx.conf:/etc/nginx/conf.d/default.conf:ro
- app-public:/var/www/html/public:ro
- app-storage:/var/www/html/storage:ro
depends_on:
+1 -1
View File
@@ -26,7 +26,7 @@ try {
if [ "$TABLE_COUNT" = "0" ]; then
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."
fi