Update Docker configuration for service port and cleanup

- Changed the web service port mapping from 8081 to 8088 for better alignment with application requirements.
- Removed unnecessary NTP installation and commands from the Dockerfile to streamline the build process.

These changes enhance the Docker setup for the Truncgil Finance application by improving service accessibility and optimizing the build configuration.
This commit is contained in:
Ümit Tunç
2025-09-15 11:06:16 -03:00
parent b494d45ed8
commit beaac25180
2 changed files with 1 additions and 4 deletions
Regular → Executable
+1 -1
View File
@@ -17,7 +17,7 @@ services:
container_name: truncgil-finance-web container_name: truncgil-finance-web
restart: always restart: always
ports: ports:
- "8081:80" - "8088:80"
volumes: volumes:
- .:/var/www - .:/var/www
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf - ./nginx/default.conf:/etc/nginx/conf.d/default.conf
-3
View File
@@ -15,10 +15,7 @@ RUN apt-get update && apt-get install -y \
libxml2-dev \ libxml2-dev \
zip \ zip \
cron \ cron \
ntp \
&& service cron start && \ && service cron start && \
ntpd -gq && \
ntpd && \
docker-php-ext-install pdo_mysql mbstring exif pcntl bcmath gd \ docker-php-ext-install pdo_mysql mbstring exif pcntl bcmath gd \
&& echo "* * * * * cd /var/www && php /var/www/artisan run-all-fetchs >> /dev/null 2>&1" >> /etc/cron.d/laravel-cron \ && echo "* * * * * cd /var/www && php /var/www/artisan run-all-fetchs >> /dev/null 2>&1" >> /etc/cron.d/laravel-cron \
&& chmod 0644 /etc/cron.d/laravel-cron \ && chmod 0644 /etc/cron.d/laravel-cron \