Switch to docker-compose-plugin
This commit is contained in:
parent
308d877d8f
commit
ae20f44d3f
@ -16,7 +16,8 @@
|
|||||||
name:
|
name:
|
||||||
- docker-ce
|
- docker-ce
|
||||||
- docker-ce-cli
|
- docker-ce-cli
|
||||||
- docker-compose
|
- containerd.io
|
||||||
|
- docker-buildx-plugin
|
||||||
state: present
|
state: present
|
||||||
tags: ['docker']
|
tags: ['docker']
|
||||||
|
|
||||||
@ -27,14 +28,6 @@
|
|||||||
mode: '0755'
|
mode: '0755'
|
||||||
tags: ['docker']
|
tags: ['docker']
|
||||||
|
|
||||||
- name: install Python module
|
|
||||||
pip:
|
|
||||||
name:
|
|
||||||
- docker
|
|
||||||
- docker-compose
|
|
||||||
executable: pip3
|
|
||||||
tags: ['docker']
|
|
||||||
|
|
||||||
- name: ensure Docker is started and enabled at boot
|
- name: ensure Docker is started and enabled at boot
|
||||||
service:
|
service:
|
||||||
name: docker
|
name: docker
|
||||||
|
@ -7,8 +7,8 @@ After=docker.service
|
|||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=true
|
RemainAfterExit=true
|
||||||
WorkingDirectory=/opt/docker-compose/{{ service }}
|
WorkingDirectory=/opt/docker-compose/{{ service }}
|
||||||
ExecStart=/usr/bin/docker-compose up -d
|
ExecStart=/usr/bin/docker compose up -d
|
||||||
ExecStop=/usr/bin/docker-compose down
|
ExecStop=/usr/bin/docker compose down
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
x
Reference in New Issue
Block a user