I have made a context to a remotehost and can docker context to the remote host (docker-compose ls works). On that remote host I have two docker compose stacks running. One run from the command line (nginxproxymanager) and one is managed by portainer (sonarqube)
When I do a ls on the remote host I get to see this:
NAME STATUS CONFIG FILES
nginxproxymanager running(3) /opt/nginxproxymanager/docker-compose.yaml
sonarqube running(2) /Users/ihullu/Systemation/sonarqube/docker-compose.yaml
When I do ps on the remote host I see this.
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
postgres-db postgres:14 “docker-entrypoint.s…” db2 36 minutes ago Up 23 minutes 5432/tcp
sonarqube-sonarqube-1 sonarqube:community “/opt/sonarqube/dock…” sonarqube 36 minutes ago Up 5 seconds 9000/tcp
These are the services of one of the two docker compose stacks namely nginxproxymanager. This stack runs from the command line. The second stack is managed by portainer.
When I try to remotely up and down one of the two docker compose stacks this only works for one stack (the one managed by protainer namelijk sonarqube). When I do a docker ps I only see the container of this stack.
So how do I switch between stacks remotely? Or is this not possible?
When I do a docker compose ps on the server host I see this
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
nginxproxymanager-app-1 jc21/nginx-proxy-manager:latest “/init” app 18 hours ago Up 8 minutes 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp, 81/tcp
nginxproxymanager-db-1 jc21/mariadb-aria:latest “/scripts/run.sh” db 18 hours ago Up 8 minutes 3306/tcp
nginxproxymanager-portainer-1 portainer/portainer-ee:latest “/portainer -H unix:…” portainer 18 hours ago Up 8 minutes 8000/tcp, 9000/tcp, 9443/tcp
These are the services from the nginxproxymanager stack and not the portainer managed sonarqube stack.
Can anyone explain to me what I am doing wrong and how to do it right?
LOCAL:
Docker Engine - Community (local), Engine 25.0.3
Docker Compose version v2.24.6-desktop.1
SERVER
Server Engine Version: 25.0.3
Docker compose: Docker Compose version v2.24.7