change container port from 80 to 4173
This commit is contained in:
parent
a54f751329
commit
51e5086e07
3 changed files with 5 additions and 5 deletions
|
|
@ -33,4 +33,4 @@ COPY --from=builder /app/dist /usr/share/nginx/html
|
|||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
# Expose the nginx port
|
||||
EXPOSE 80
|
||||
EXPOSE 4173
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ services:
|
|||
dockerfile: Dockerfile
|
||||
container_name: monochrome
|
||||
ports:
|
||||
- '${MONOCHROME_PORT:-3000}:80'
|
||||
- '${MONOCHROME_PORT:-3000}:4173'
|
||||
environment:
|
||||
AUTH_ENABLED: ${AUTH_ENABLED:-false}
|
||||
AUTH_SECRET: ${AUTH_SECRET:-}
|
||||
|
|
@ -18,7 +18,7 @@ services:
|
|||
networks:
|
||||
- monochrome-network
|
||||
healthcheck:
|
||||
test: ['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://localhost:80/']
|
||||
test: ['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://localhost:4173/']
|
||||
interval: 30s
|
||||
timeout: 3s
|
||||
retries: 3
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
listen 4173;
|
||||
listen [::]:4173;
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
|
|
|
|||
Loading…
Reference in a new issue