Skip to content

Commit e361c45

Browse files
authored
Create deploy_service.yml
1 parent 14dd3ff commit e361c45

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ansible/deploy_service.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
- name: Deploy Yii2 app as Swarm service
3+
hosts: all
4+
become: true
5+
6+
tasks:
7+
- name: Deploy PHP service
8+
shell: docker stack deploy -c /app/docker-compose.yml yii2app

0 commit comments

Comments
 (0)