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

bash: /usr/bin/docker-compose: No such file or directory #1

Open
Machabane opened this issue Jul 7, 2021 · 1 comment
Open

bash: /usr/bin/docker-compose: No such file or directory #1

Machabane opened this issue Jul 7, 2021 · 1 comment

Comments

@Machabane
Copy link
Contributor

Machabane commented Jul 7, 2021

When configuring openmrs.service on /etc/systemd/system consider /usr/local/bin/docker-compose for Ubuntu 19.10

@maurochss
Copy link

Hi Hélio,

This is due to the fact that on the newest releases of docker, compose has become a module of docker thus being called docker compose

Try:

**[Unit]
Description=Refapp Docker Containers
After=network.target docker.service

[Service]

Replace with the actual path to your project directory

ExecStart=/usr/bin/docker compose -f /docker-compose.yml up -d
ExecStop=/usr/bin/docker compose -f /docker-compose.yml down
Restart=always
WorkingDirectory=
TimeoutStartSec=0

[Install]
WantedBy=multi-user.target**

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants