monte
monte
Explore posts from servers
DDokploy
Created by monte on 2/5/2025 in #old-help
Connecting backend to frontend
Also thanks for your time @𝗠𝗿𝟭𝗕𝗹𝗮𝘇𝗲 and @DJKnaeckebrot
77 replies
DDokploy
Created by monte on 2/5/2025 in #old-help
Connecting backend to frontend
I have both, docker-compose.yml for backend and dockerfile for frontend. Backend depends on other services which themselve have their dockerfile. Neverthless, henrik proposed solution worked. Thank your time @Firdaus
77 replies
DDokploy
Created by monte on 2/5/2025 in #old-help
Connecting backend to frontend
Thanks a lot henrik, your proposed solution worked.
77 replies
DDokploy
Created by monte on 2/5/2025 in #old-help
Connecting backend to frontend
apparently uvicorn doesn't have the --hostname flag, it does have --host flag though
77 replies
DDokploy
Created by monte on 2/5/2025 in #old-help
Connecting backend to frontend
but isn't dokploy-network doing this?
77 replies
DDokploy
Created by monte on 2/5/2025 in #old-help
Connecting backend to frontend
yes
77 replies
DDokploy
Created by monte on 2/5/2025 in #old-help
Connecting backend to frontend
yes, I am keeping fastapi as separate service and not exposed to internet. where should i add this flag? are you referring to dokploy run command/
77 replies
DDokploy
Created by monte on 2/5/2025 in #old-help
Connecting backend to frontend
yes, I am only exposing frontend to the internet and backend is exposed only to the backend
77 replies
DDokploy
Created by monte on 2/5/2025 in #old-help
Connecting backend to frontend
when I am inside the server, I am able to connect with curl http://localhost:8000/ but when I am in container the same doesn't work
77 replies
DDokploy
Created by monte on 2/5/2025 in #old-help
Connecting backend to frontend
it's fastapi on backend, and sveltekit on frontend
77 replies
DDokploy
Created by monte on 2/5/2025 in #old-help
Connecting backend to frontend
this means, instead of this: - traefik.http.routers.saralprod-saral-prod-b0moyj.rule=Host(api.saral.club) it should simply be - traefik.http.routers.saralprod-saral-prod-b0moyj.rule=Host(8000`)
77 replies
DDokploy
Created by monte on 2/5/2025 in #old-help
Connecting backend to frontend
I don't want to expose it to internet.
77 replies
DDokploy
Created by monte on 2/5/2025 in #old-help
Connecting backend to frontend
is this a dokploy setting that i can configure?
77 replies
DDokploy
Created by monte on 2/5/2025 in #old-help
Connecting backend to frontend
when I curl from inside of my frontend application container, I get the error could not resolve host. I do curl http://api.saral.club/info
77 replies
DDokploy
Created by monte on 2/5/2025 in #old-help
Connecting backend to frontend
I found similar to this in dokploy docs
77 replies
DDokploy
Created by monte on 2/5/2025 in #old-help
Connecting backend to frontend
I am using the following configuration in my backend
networks:
- dokploy-network
labels:
- traefik.enable=true
- traefik.http.routers.saralprod-saral-prod-b0moyj.rule=Host(`api.saral.club`)
# - traefik.http.routers.saralprod-saral-prod-b0moyj.entrypoints=web
- traefik.http.routers.saralprod-saral-prod-b0moyj.internal=true
- traefik.http.services.saralprod-saral-prod-b0moyj.loadbalancer.server.port=8000
networks:
- dokploy-network
labels:
- traefik.enable=true
- traefik.http.routers.saralprod-saral-prod-b0moyj.rule=Host(`api.saral.club`)
# - traefik.http.routers.saralprod-saral-prod-b0moyj.entrypoints=web
- traefik.http.routers.saralprod-saral-prod-b0moyj.internal=true
- traefik.http.services.saralprod-saral-prod-b0moyj.loadbalancer.server.port=8000
77 replies
DDokploy
Created by monte on 2/5/2025 in #old-help
Connecting backend to frontend
I was relying on dokploy to build the docker image and deploy. Instead of me setting it up. I haven't yet planned for it as it seemed rather complex.
77 replies
DDokploy
Created by monte on 2/5/2025 in #old-help
Connecting backend to frontend
They are in separate git repository
77 replies