D
Dokployβ€’4mo ago
wfox

Using docker-compose commands with dokploy

Hi everyone, I'm new here and not sure how Dokploy exactly works. 🧐 I set up a new server with a fresh installation of Ubuntu Server and Dokploy, and deployed my first service using the "n8n" template. Everything runs smoothly. My issue is, when I log through SSH to my server and try using docker-compose commands (like "docker-compose ps"), I get "docker-compose not found" and I am prompted to install it. Does this mean Dokploy doesn't install docker-compose, or that I should not use docker-compose commands with Dokploy? πŸ™„ Thank you in advance.
8 Replies
DJKnaeckebrot
DJKnaeckebrotβ€’4mo ago
I think depending on the os it moved to docker compose Eitherway does Dokploy use docker compose and swarm/services to deploy the application πŸ™‚
wfox
wfoxOPβ€’4mo ago
Thanks. Is there any way I can run docker compose commands to monitor or contronl containers running in dokploy ?
DJKnaeckebrot
DJKnaeckebrotβ€’4mo ago
Why running command? Dokploy provides all that in the UI
wfox
wfoxOPβ€’4mo ago
Running commands will help write scripts to control and automate my containers based on events external to dokploy.
DJKnaeckebrot
DJKnaeckebrotβ€’4mo ago
I would suggest to use the dokploy api instead of running commands
michaelvips
michaelvipsβ€’4mo ago
@DJKnaeckebrot dockplay already install composer, I think you are using the wrong command or trying exec inside a container not in your vps.
DJKnaeckebrot
DJKnaeckebrotβ€’4mo ago
Yeah dokploy installs docker compose by default, I just recommend using the api as the compose names are pretty long and confusing, for the api you just need to add the id and it’ll do everything you want it to do
wfox
wfoxOPβ€’4mo ago
Great! I'll use the API then. Thank you for the feedback

Did you find this page helpful?