blob: 32826419b40f1199180da42df6caf09e0498efd5 [file] [log] [blame]
Filip Pytloune7d4f862017-08-04 13:11:51 +02001classes:
2- system.docker
Filip Pytloun7d6144a2017-04-13 13:36:45 +02003parameters:
4 _param:
azvyagintsev4c89c122018-02-27 12:52:35 +02005 docker_stack_aptly_public_replicas: 3
Filip Pytloun7d6144a2017-04-13 13:36:45 +02006 docker:
7 client:
8 stack:
9 aptly:
10 environment:
11 EMAIL_ADDRESS: ${_param:admin_email}
Filip Pytloune7d4f862017-08-04 13:11:51 +020012 https_proxy: ${_param:docker_https_proxy}
13 http_proxy: ${_param:docker_http_proxy}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020014 service:
15 api:
16 deploy:
17 restart_policy:
18 condition: any
Alexander Evseev7e4d32e2018-11-27 10:19:51 +010019 image: ${_param:docker_image_aptly:base}
20 command: 'aptly api serve -no-lock'
Filip Pytloun7d6144a2017-04-13 13:36:45 +020021 ports:
22 - 18084:8080
23 volumes:
24 - /srv/volumes/aptly:/var/lib/aptly
25 public:
26 deploy:
azvyagintsev4c89c122018-02-27 12:52:35 +020027 replicas: ${_param:docker_stack_aptly_public_replicas}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020028 restart_policy:
29 condition: any
30 image: ${_param:docker_image_aptly:public}
31 ports:
32 - 18085:80
33 volumes:
34 - /srv/volumes/aptly/public:/var/www/html