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
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
|
|
||||||
# Expose the nginx port
|
# Expose the nginx port
|
||||||
EXPOSE 80
|
EXPOSE 4173
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ services:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
container_name: monochrome
|
container_name: monochrome
|
||||||
ports:
|
ports:
|
||||||
- '${MONOCHROME_PORT:-3000}:80'
|
- '${MONOCHROME_PORT:-3000}:4173'
|
||||||
environment:
|
environment:
|
||||||
AUTH_ENABLED: ${AUTH_ENABLED:-false}
|
AUTH_ENABLED: ${AUTH_ENABLED:-false}
|
||||||
AUTH_SECRET: ${AUTH_SECRET:-}
|
AUTH_SECRET: ${AUTH_SECRET:-}
|
||||||
|
|
@ -18,7 +18,7 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- monochrome-network
|
- monochrome-network
|
||||||
healthcheck:
|
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
|
interval: 30s
|
||||||
timeout: 3s
|
timeout: 3s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 4173;
|
||||||
listen [::]:80;
|
listen [::]:4173;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue