wvanheemstra
wvanheemstra
DDokploy
Created by wvanheemstra on 6/20/2024 in #old-help
Please show me how I deploy a custom configured NGinX server with nix packages in Dokploy
services: nginx: image: nginx:latest ports: - "${APP_PORT}:80" volumes: - ./nginx.conf:/etc/nginx/nginx.conf:ro networks: - dokploy-network labels: - "traefik.enable=true" - "traefik.http.routers.${HASH}.rule=Host(${APP_HOST})" - "traefik.http.routers.${HASH}.entrypoints=websecure" - "traefik.http.routers.${HASH}.tls.certResolver=letsencrypt" - "traefik.http.services.${HASH}.loadbalancer.server.port=${APP_PORT}" whoami: image: traefik/whoami ports: - "80" networks: - dokploy-network networks: dokploy-network: external: true
34 replies
DDokploy
Created by wvanheemstra on 6/20/2024 in #old-help
Please show me how I deploy a custom configured NGinX server with nix packages in Dokploy
Thank you @Siumauricio your answer is fantastic and detailed! All works well, but when I try to check from a browser with server IP and port 8081 I get a warning “This site can’t be reached” instead of what you posted here. What is your advice, please.
34 replies
DDokploy
Created by wvanheemstra on 6/20/2024 in #old-help
Please show me how I deploy a custom configured NGinX server with nix packages in Dokploy
Would a clean help?
34 replies
DDokploy
Created by wvanheemstra on 6/20/2024 in #old-help
Please show me how I deploy a custom configured NGinX server with nix packages in Dokploy
I don’t see errors in logs
34 replies
DDokploy
Created by wvanheemstra on 6/20/2024 in #old-help
Please show me how I deploy a custom configured NGinX server with nix packages in Dokploy
Thanks, it says error to reload traefik
34 replies
DDokploy
Created by wvanheemstra on 6/20/2024 in #old-help
Please show me how I deploy a custom configured NGinX server with nix packages in Dokploy
Please tell me how to reload traefik, thank you!
34 replies
DDokploy
Created by wvanheemstra on 6/20/2024 in #old-help
Please show me how I deploy a custom configured NGinX server with nix packages in Dokploy
OK, then I don’t understand why the log says it is not set?
34 replies
DDokploy
Created by wvanheemstra on 6/20/2024 in #old-help
Please show me how I deploy a custom configured NGinX server with nix packages in Dokploy
Where do you store these environment variables? In Dokploy environments tab, or in a .env file in a GitHub repository?
34 replies
DDokploy
Created by wvanheemstra on 6/20/2024 in #old-help
Please show me how I deploy a custom configured NGinX server with nix packages in Dokploy
Can it pick up the Environment variables set through the web user interface of Dokploy?
34 replies
DDokploy
Created by wvanheemstra on 6/20/2024 in #old-help
Please show me how I deploy a custom configured NGinX server with nix packages in Dokploy
Host(‘${APP_HOST}’) with backticks
34 replies
DDokploy
Created by wvanheemstra on 6/20/2024 in #old-help
Please show me how I deploy a custom configured NGinX server with nix packages in Dokploy
For the hash I use a ‘unique’ name, in this case HASH=app
34 replies
DDokploy
Created by wvanheemstra on 6/20/2024 in #old-help
Please show me how I deploy a custom configured NGinX server with nix packages in Dokploy
Yes, like so: labels: - “traefik.http.services.${HASH}.loadbalancer.server.port=${APP_PORT}”
34 replies
DDokploy
Created by wvanheemstra on 6/20/2024 in #old-help
Please show me how I deploy a custom configured NGinX server with nix packages in Dokploy
I am on Dokploy version 0.2.4
34 replies
DDokploy
Created by wvanheemstra on 6/20/2024 in #old-help
Please show me how I deploy a custom configured NGinX server with nix packages in Dokploy
It looks like the issue lies with Environment variables not being picked up. For example through the Dokploy user interface I have set an environment variable “ APP_PORT=8081”, whereas the log of my deployment states “… msg=“The ”APP_PORT” variable is not set. Defaulting to a blank string.”
34 replies
DDokploy
Created by wvanheemstra on 6/20/2024 in #old-help
Please show me how I deploy a custom configured NGinX server with nix packages in Dokploy
It seems to work, although when browsing in the browser to this Docker compose service it says “404 page not found”
34 replies
DDokploy
Created by wvanheemstra on 6/20/2024 in #old-help
Please show me how I deploy a custom configured NGinX server with nix packages in Dokploy
Thank you so much @Siumauricio !
34 replies