I have such a file with docker-compose.yml :
version: '3' services: web: build: . command: service nginx start ports: - "35001:80" He collects everything correctly, but I cannot understand how to properly deploy to a remote machine.
Here are all the questions:
Where do I need to specify the hosts and ports for
sshconnection?What settings should be on the remote machine?
How do I run a container with the
-dand--nameflags throughdocker-composeso that the container will immediately begin to perform its duties?
The official documentation on the example of Django did not find the answers to their questions.