diff --git a/docker-compose.yml b/docker-compose.yml index ffe32b3..355e086 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,7 +18,7 @@ services: container_name: saqel_nginx restart: unless-stopped ports: - - "${APP_PORT:-8080}:80" + - "${APP_PORT:-8085}:80" volumes: - ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro depends_on: @@ -36,10 +36,11 @@ services: volumes: - mysql_data:/var/lib/mysql healthcheck: - test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-p${DB_PASSWORD:-secret}"] + test: ["CMD-SHELL", "mysqladmin ping -h 127.0.0.1 -uroot -p$${MYSQL_ROOT_PASSWORD} || exit 1"] interval: 10s timeout: 5s retries: 10 + start_period: 30s queue: build: diff --git a/docker/.env.docker.example b/docker/.env.docker.example index b6ae4a1..1956bcf 100644 --- a/docker/.env.docker.example +++ b/docker/.env.docker.example @@ -7,7 +7,7 @@ APP_NAME=Saqel APP_ENV=production APP_DEBUG=false APP_URL=https://saqel.intaleqapp.com -APP_PORT=8080 +APP_PORT=8085 # Database Configuration (MySQL 8) DB_CONNECTION=mysql