invoiceninja / dockerfiles

Docker files for Invoice Ninja
https://hub.docker.com/r/invoiceninja/invoiceninja
GNU General Public License v2.0
419 stars 268 forks source link

Setup with docker-compose and coolify.io #489

Closed jankohlbach closed 1 year ago

jankohlbach commented 1 year ago

Setup information docker-compose

Describe the bug I want to set up invoice ninja with the docker-compose file on an instance of coolify.io, which is basically just an ui for docker running on a server. However, when I try to deploy it, I get following error:

[15:20:53.590] Cloning invoiceninja/dockerfiles:master...
[15:20:54.405] Configuration changed
[15:21:54.054] Pulling images from Compose file...
[15:21:54.220] Building images from Compose file...
[15:21:55.143] Command failed with exit code 1: docker compose --project-directory /tmp/build-sources/invoiceninja/dockerfiles/clcxiyc2q004p9rl10ww24tlw up -d
Network invoiceninja  Creating
Network invoiceninja  Created
time="2023-01-15T15:21:54Z" level=warning msg="volume \"clcxfmp13000gl19r7nvr1cmh-docker-mysql-data\" already exists but was not created for project \"clcxfsowk00239rl11m8t53d5\". Use `external: true` to use an existing volume"
time="2023-01-15T15:21:54Z" level=warning msg="volume \"clcxfmp13000gl19r7nvr1cmh-config-nginx-in-vhostconf\" already exists but was not created for project \"clcxfsowk00239rl11m8t53d5\". Use `external: true` to use an existing volume"
time="2023-01-15T15:21:54Z" level=warning msg="volume \"clcxfmp13000gl19r7nvr1cmh-docker-app-public\" already exists but was not created for project \"clcxfsowk00239rl11m8t53d5\". Use `external: true` to use an existing volume"
time="2023-01-15T15:21:54Z" level=warning msg="volume \"clcxfmp13000gl19r7nvr1cmh-config-hosts\" already exists but was not created for project \"clcxfsowk00239rl11m8t53d5\". Use `external: true` to use an existing volume"
time="2023-01-15T15:21:54Z" level=warning msg="volume \"clcxfmp13000gl19r7nvr1cmh-docker-app-storage\" already exists but was not created for project \"clcxfsowk00239rl11m8t53d5\". Use `external: true` to use an existing volume"
Container clcxfmp13000gl19r7nvr1cmh-db  Creating
Container clcxfmp13000gl19r7nvr1cmh-db  Created
Container clcxfmp13000gl19r7nvr1cmh-app  Creating
Error response from daemon: source /var/lib/docker/overlay2/71ea986e3288f3dc69eb275f2aa1ef65a8abe495c0b0ba5e38ae140e4bded769/merged/etc/hosts is not directory
[15:21:55.170] {}
[15:21:55.174] Error: Command failed with exit code 1: docker compose --project-directory /tmp/build-sources/invoiceninja/dockerfiles/clcxiyc2q004p9rl10ww24tlw up -d
Network invoiceninja  Creating
Network invoiceninja  Created
time="2023-01-15T15:21:54Z" level=warning msg="volume \"clcxfmp13000gl19r7nvr1cmh-docker-mysql-data\" already exists but was not created for project \"clcxfsowk00239rl11m8t53d5\". Use `external: true` to use an existing volume"
time="2023-01-15T15:21:54Z" level=warning msg="volume \"clcxfmp13000gl19r7nvr1cmh-config-nginx-in-vhostconf\" already exists but was not created for project \"clcxfsowk00239rl11m8t53d5\". Use `external: true` to use an existing volume"
time="2023-01-15T15:21:54Z" level=warning msg="volume \"clcxfmp13000gl19r7nvr1cmh-docker-app-public\" already exists but was not created for project \"clcxfsowk00239rl11m8t53d5\". Use `external: true` to use an existing volume"
time="2023-01-15T15:21:54Z" level=warning msg="volume \"clcxfmp13000gl19r7nvr1cmh-config-hosts\" already exists but was not created for project \"clcxfsowk00239rl11m8t53d5\". Use `external: true` to use an existing volume"
time="2023-01-15T15:21:54Z" level=warning msg="volume \"clcxfmp13000gl19r7nvr1cmh-docker-app-storage\" already exists but was not created for project \"clcxfsowk00239rl11m8t53d5\". Use `external: true` to use an existing volume"
Container clcxfmp13000gl19r7nvr1cmh-db  Creating
Container clcxfmp13000gl19r7nvr1cmh-db  Created
Container clcxfmp13000gl19r7nvr1cmh-app  Creating
Error response from daemon: source /var/lib/docker/overlay2/71ea986e3288f3dc69eb275f2aa1ef65a8abe495c0b0ba5e38ae140e4bded769/merged/etc/hosts is not directory

I have set the environment variables accordingly.

To reproduce Steps to reproduce the behavior:

  1. I select https://github.com/invoiceninja/dockerfiles as the git repository and the location of the docker-compose file
  2. I set the env variables in the ui
  3. I just press deploy and get the error not sure if I need to set something else in the coolify dashboard before deploying

Expected behavior Install without issues.

jankohlbach commented 1 year ago

for now, I just used a shared hosting with installation per git

jenishngl commented 1 year ago

do you mind sharing your docker-compose.yml? i too am trying to get this work on coolify

jankohlbach commented 1 year ago

@jenishngl I even moved away from invoiceninja now, sorry but don't have the file anymore

MCole-K9 commented 5 months ago

Hi I'm now trying to use invoice ninja. image

I'm using the default docker-compose.yaml, excluding the extra host bit