From c97117d29fe8f2123694f53a273906d09c9f1c49 Mon Sep 17 00:00:00 2001 From: Jonas Gaffke Date: Wed, 20 Mar 2024 14:55:59 +0100 Subject: [PATCH] change port from 80 to 8080 --- Dockerfile | 4 ++++ compose.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0488701..3c1196d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,6 +39,10 @@ RUN --mount=type=bind,source=composer.json,target=composer.json \ # php@sha256:99cede493dfd88720b610eb8077c8688d3cca50003d76d1d539b0efc8cca72b4. FROM php:8.3-apache as final +# Listen on port 8080 instead of 80. +RUN sed -i 's/Listen 80/Listen 8080/g' /etc/apache2/ports.conf +RUN sed -i 's/80/8080/g' /etc/apache2/sites-available/000-default.conf + RUN apt-get update && apt-get install -y libpq-dev && docker-php-ext-install pdo pdo_pgsql # Your PHP application may require additional PHP extensions to be installed diff --git a/compose.yaml b/compose.yaml index d20d4a8..b32e9bd 100644 --- a/compose.yaml +++ b/compose.yaml @@ -12,7 +12,7 @@ services: build: context: . ports: - - 9000:80 + - 8080:8080 develop: watch: - action: sync