Skip to content

Commit de4d601

Browse files
committed
use nginx stable (debian) instead of alpine, changed ports to 8080
1 parent 257f395 commit de4d601

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

samples/html-css-js/app/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use nginx as the base image
2-
FROM nginx:alpine
2+
FROM nginx:stable
33

44
# Set working directory to /app
55
WORKDIR /app
@@ -14,5 +14,5 @@ RUN chmod -R 755 /usr/share/nginx/html && chown -R nginx:nginx /usr/share/nginx/
1414
COPY nginx.conf /etc/nginx/nginx.conf
1515

1616
# Expose the port your app runs on
17-
EXPOSE 80
17+
EXPOSE 8080
1818

samples/html-css-js/app/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ http {
22
include mime.types;
33
sendfile on;
44
server {
5-
listen 80;
5+
listen 8080;
66
server_name localhost;
77

88
location / {

samples/html-css-js/compose.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ services:
77
context: ./app
88
dockerfile: Dockerfile
99
ports:
10-
- target: 80
10+
- target: 8080
1111
published: 8080
1212
mode: ingress
1313
deploy:
1414
resources:
1515
reservations:
1616
memory: 256M
1717
healthcheck:
18-
test: ["CMD", "wget", "-q", "--spider", "http://localhost:80/"]
18+
test: ["CMD", "curl", "-f", "http://localhost:8080/"]

0 commit comments

Comments
 (0)