Replies: 1 comment 2 replies
|
Make sure the .env file exists on the main branch, maybe you are on a different branch? |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello
I really like the concept of doco-cd but I am struggling to get it to work. I got it running and connected it to my private forgejo repo. Now the repo only contains compose.yml files but not .env files. How do I get doco-cd to successfully deploy my services with .env file? I have caddy for example where I use .env file for some secrets
This is caddy directory structure
this is my .doco-cd.yml
this is the error I get
{ "time": "2026-04-24T03:05:09.120988638+03:00", "level": "error", "msg": "failed to deploy", "error": "failed to deploy stack caddy: failed to load compose config: failed to get .env file for interpolation: couldn't find env file: /volume1/@docker/volumes/doco-cd_data/_data/192.168.1.10_222/user/homelab/caddy/.env", "interval": 60, "job_id": "019dbcbb-a4b4-7938-b113-d60fd4c02719", "reconciliation_id": "019dbccd-fb75-7e15-b48b-32cd91b3bc45", "repository": "192.168.1.10:222/user/homelab" }All reactions