Hello,
Currently to use docker swarm we use compose file a yaml file with this format
````
version: '3.4'
serives:
web:
image: nginx:alpine
ports:
- 80:80
- 443:443
app:
image: my-app
````
with XL command we need to use another format :
```
apiVersion: xl-deploy/v1
kind: Applications
spec:
- directory: Applications/my-stack
children:
- name: my-stack
type: udm.Application
lastVersion: my-stack
children:
- name: stack
type: udm.DeploymentPackage
deployables:
- name: my-app
type: docker.ServiceSpec
serviceName: my-app
image: my-app:1.2
networks:
- my-network
- name: my-network
type: docker.NetworkSpec
networkName: my-network
driver: overlay
- name: nginx
type: docker.ServiceSpec
serviceName: nginx
image: nginx-latest
networks:
- my-network
portBindings:
- name: web
type: docker.ServicePortSpec
target_port: "443"
published_port: "443"
```
have a tool or feature into xl cli can be very usefull
by: josselin c. | over a year ago | API & CLI tools
Comments
Josselin, thank you for your request.
While we wait for broader customer base to upvote this item, it would be good to know what solution you had in mind:
- Converting the existing Docker Compose YAML file to align with the Deploy YAML format?
or
- Having a feature that reads the Docker Compose YAML file and generates the corresponding Deploy YAML file?
or some other option.