File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ services:
15
15
ports :
16
16
- " 9090:9090"
17
17
volumes :
18
- - ./docker/prometheus/ prometheus.yml:/etc/prometheus/prometheus.yml
18
+ - ./prometheus.yml:/etc/prometheus/prometheus.yml
19
19
deploy :
20
20
replicas : 1
21
21
Original file line number Diff line number Diff line change 16
16
run_once : true
17
17
18
18
19
- - name : Ansible Copy docker-compose-swarm.yaml Local to firt node
19
+ - name : Ansible Copy docker-compose-swarm.yaml Local to first node
20
20
hosts : swarm
21
21
tasks :
22
- - name : copying file with playbook
22
+ - name : copying docker compose file
23
23
become : true
24
24
copy :
25
25
src : ../../../docker-compose-swarm.yaml
26
26
dest : ./docker-compose-swarm.yaml
27
27
run_once : true
28
+ - name : copying prometheus config
29
+ become : true
30
+ copy :
31
+ src : ../../../docker/prometheus/prometheus.yml
32
+ dest : ./prometheus.yml
33
+ run_once : true
28
34
- name : deploy covid19 app
29
35
shell : docker stack deploy --compose-file docker-compose-swarm.yaml covid19
30
36
run_once : true
You can’t perform that action at this time.
0 commit comments