Skip to content

Commit

Permalink
change port from 80 to 8080
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsga committed Mar 20, 2024
1 parent 31d5c77 commit c97117d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
build:
context: .
ports:
- 9000:80
- 8080:8080
develop:
watch:
- action: sync
Expand Down

0 comments on commit c97117d

Please sign in to comment.