[GH-ISSUE #175] docker-compose command not found #53

Closed
opened 2026-02-26 18:45:09 +03:00 by kerem · 7 comments
Owner

Originally created by @The-Robin-Hood on GitHub (May 30, 2023).
Original GitHub issue: https://github.com/documenso/documenso/issues/175

Issue Statement:

The package json script contains a docker-compose command that is v1 docker compose command which in v2 it is switched to "docker compose". This inconsistency can cause errors and delays in the installation process, especially for novice users who are unfamiliar with Docker.

Recommendation:

To resolve this issue, it is suggested that the package.json script should be updated to include both versions of the command to accommodate all systems.

Originally created by @The-Robin-Hood on GitHub (May 30, 2023). Original GitHub issue: https://github.com/documenso/documenso/issues/175 Issue Statement: The package json script contains a docker-compose command that is v1 docker compose command which in v2 it is switched to "docker compose". This inconsistency can cause errors and delays in the installation process, especially for novice users who are unfamiliar with Docker. Recommendation: To resolve this issue, it is suggested that the package.json script should be updated to include both versions of the command to accommodate all systems.
kerem closed this issue 2026-02-26 18:45:09 +03:00
Author
Owner

@Mythie commented on GitHub (May 30, 2023):

Yep this is going to be because I'm a tech boomer 😂

Appreciate the issue and the PR to resolve

<!-- gh-comment-id:1568378190 --> @Mythie commented on GitHub (May 30, 2023): Yep this is going to be because I'm a tech boomer 😂 Appreciate the issue and the PR to resolve
Author
Owner

@nikmartin commented on GitHub (May 30, 2023):

the patch doesn't work on linux. I'll see if I can find a workaround

<!-- gh-comment-id:1568758330 --> @nikmartin commented on GitHub (May 30, 2023): the patch doesn't work on linux. I'll see if I can find a workaround
Author
Owner

@The-Robin-Hood commented on GitHub (May 30, 2023):

@nikmartin whats the prob you are facing ? Coz it did worked for me

<!-- gh-comment-id:1568772994 --> @The-Robin-Hood commented on GitHub (May 30, 2023): @nikmartin whats the prob you are facing ? Coz it did worked for me
Author
Owner

@nikmartin commented on GitHub (May 30, 2023):

running this in bash:
docker compose -f ./docker/compose-without-app.yml || docker-compose -f ./docker/compose-without-app.yml up -d

returns:

Usage:  docker compose [OPTIONS] COMMAND

Docker Compose
...

BUT adding the full command to each option:
docker compose -f ./docker/compose-without-app.yml up -d || docker-compose -f ./docker/compose-without-app.yml up -d

works for me

<!-- gh-comment-id:1568787845 --> @nikmartin commented on GitHub (May 30, 2023): running this in bash: ` docker compose -f ./docker/compose-without-app.yml || docker-compose -f ./docker/compose-without-app.yml up -d` returns: ``` Usage: docker compose [OPTIONS] COMMAND Docker Compose ... ``` BUT adding the full command to each option: `docker compose -f ./docker/compose-without-app.yml up -d || docker-compose -f ./docker/compose-without-app.yml up -d` works for me
Author
Owner

@The-Robin-Hood commented on GitHub (May 30, 2023):

@nikmartin One way to fix is

"docker:compose-up": "docker compose -f ./docker/compose-without-app.yml up -d || docker-compose -f ./docker/compose-without-app.yml up -d",
"docker:compose-down": "docker compose -f ./docker/compose-without-app.yml down || docker-compose -f ./docker/compose-without-app.yml down"

and remove docker-compose

@Mythie what's your thought ?

<!-- gh-comment-id:1568818814 --> @The-Robin-Hood commented on GitHub (May 30, 2023): @nikmartin One way to fix is ``` "docker:compose-up": "docker compose -f ./docker/compose-without-app.yml up -d || docker-compose -f ./docker/compose-without-app.yml up -d", "docker:compose-down": "docker compose -f ./docker/compose-without-app.yml down || docker-compose -f ./docker/compose-without-app.yml down" ``` and remove docker-compose @Mythie what's your thought ?
Author
Owner

@Mythie commented on GitHub (Jun 1, 2023):

Sounds like the way to go! Sorry for the delay, you can either raise a PR or I can do so shortly :)

<!-- gh-comment-id:1572135033 --> @Mythie commented on GitHub (Jun 1, 2023): Sounds like the way to go! Sorry for the delay, you can either raise a PR or I can do so shortly :)
Author
Owner

@Mythie commented on GitHub (Jun 3, 2023):

Resolved with #184

<!-- gh-comment-id:1574802721 --> @Mythie commented on GitHub (Jun 3, 2023): Resolved with #184
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#53
No description provided.