Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Network setting do not apply on apps created from templates #4276

Open
mr47 opened this issue Nov 13, 2024 · 7 comments
Open

[Bug]: Network setting do not apply on apps created from templates #4276

mr47 opened this issue Nov 13, 2024 · 7 comments
Labels
🐛 Bug Reported issues that need to be reproduced by the team.

Comments

@mr47
Copy link

mr47 commented Nov 13, 2024

Error Message and Logs

Creating grafana for example (no modification was done to template) exept
Image
Docker-compose (deployable)
Image

Setting option connect to predefined networks have no effect. (its already set)

Steps to Reproduce

  1. Create a grafana app
  2. Add coolify network by hand using edit / setting connect to predefined network
  3. Check deployable docker-compose.yaml
  4. Observe absence of networks

PS: Maybe its merging object problem ?

Example Repository URL

No response

Coolify Version

v4.0.0-beta.367

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

TrueNas ElectricEel-24.10.0.2

Additional Information

No response

@mr47 mr47 added 🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization. labels Nov 13, 2024
@djsisson
Copy link
Contributor

@mr47 after ticking connect to predefined network and redeploying, are you saying if you run docker network inspect coolify you dont see the container?

@mr47
Copy link
Author

mr47 commented Nov 14, 2024

@djsisson yes, docker-compose.yaml deployable does not contain coolify as network

@peaklabs-dev peaklabs-dev removed the 🔍 Triage Issues that need assessment and prioritization. label Nov 14, 2024
@djsisson
Copy link
Contributor

@mr47 it doesnt add it to compose, it manaully adds it to the network

@mr47
Copy link
Author

mr47 commented Nov 14, 2024

@djsisson yeah but that a problem when I wanna add for example other custom defined network not coolify for example, its confusing that there is no network section, and even docker-compose that saved inside /data/coolify have the same.

@djsisson
Copy link
Contributor

@mr47 you need to add a top level network section if thats what you want, it does work when adding your own networks, see appwrite template for an example

@mr47
Copy link
Author

mr47 commented Nov 14, 2024

@djsisson that's the issue coolify not sync docker compose with ui, so this behavior is magical.

Even if I add

networks:
   mynet: 
     name: myned
     external: true
services: 
    myService:
       network: 
          mynet: null

That will result in deployable docker-compose without network mynet

@djsisson
Copy link
Contributor

@mr47 can you paste link to your compose please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Reported issues that need to be reproduced by the team.
Projects
None yet
Development

No branches or pull requests

3 participants