modified NextJS publishing port
This commit is contained in:
@@ -19,7 +19,7 @@ services:
|
||||
AUTH_SECRET: Gh0jQ35oq6DR8HkLR3heA8EaEDtxYN/xkP6blvukZ0w=
|
||||
HOSTNAME: rezije.app # IP address at which the server will be listening (0.0.0.0 = listen on all addresses)
|
||||
EXTAUTH_URL: ${HOSTNAME:-https://rezije.app} # URL next-auth will use while redirecting user during authentication (if not set - will use HOSTNAME)
|
||||
PORT: ${PORT:-3000}
|
||||
PORT: ${PORT:-80}
|
||||
deploy:
|
||||
# u slucaju rušenja kontejnera čekamo 5s i dižemo novi kontejner => ako se i on sruši opet ceka 5s i pokusava ponovno (tako 5 puta)
|
||||
restart_policy:
|
||||
@@ -29,7 +29,7 @@ services:
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.docker.network=traefik-network # mreže preko koje ide komunikacija sa Traefikom
|
||||
- traefik.http.services.web-app.loadbalancer.server.port=3000
|
||||
- traefik.http.services.web-app.loadbalancer.server.port=80
|
||||
- traefik.http.routers.web-app.entrypoints=http
|
||||
- traefik.http.routers.web-app.rule=Host(`${FQDN:-rezije.app}`)
|
||||
mongo:
|
||||
|
||||
@@ -4,4 +4,7 @@ fe00::0 ip6-localnet
|
||||
ff00::0 ip6-mcastprefix
|
||||
ff02::1 ip6-allnodes
|
||||
ff02::2 ip6-allrouters
|
||||
127.0.0.1 rezije.app
|
||||
# NextJS will do name resolution for `rezije.app` and will crash if it
|
||||
# resolves to an IP adress different from the one assigned to the Docker container.
|
||||
# This will prevent that from happening.
|
||||
0.0.0.0 rezije.app
|
||||
|
||||
Reference in New Issue
Block a user