blob: a7928f7c707a5a25b5c58531baaff143b91b7ec5 [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_image_aptly:
Jakub Josef86b07822018-04-10 14:45:52 +02007 # This image is temporary replacement for mirantis/aptly-api because of acquire_by_hash bug
8 # https://github.com/smira/aptly/pull/697. We waiting for new release of aptly
9 api: breton/aptly-api
10 #api: mirantis/aptly-api
11 public: mirantis/aptly-public
Filip Pytloun7d6144a2017-04-13 13:36:45 +020012 docker:
13 client:
14 stack:
15 aptly:
16 environment:
17 EMAIL_ADDRESS: ${_param:admin_email}
Filip Pytloune7d4f862017-08-04 13:11:51 +020018 https_proxy: ${_param:docker_https_proxy}
19 http_proxy: ${_param:docker_http_proxy}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020020 service:
21 api:
22 deploy:
23 restart_policy:
24 condition: any
25 image: ${_param:docker_image_aptly:api}
26 ports:
27 - 18084:8080
28 volumes:
29 - /srv/volumes/aptly:/var/lib/aptly
30 public:
31 deploy:
azvyagintsev4c89c122018-02-27 12:52:35 +020032 replicas: ${_param:docker_stack_aptly_public_replicas}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020033 restart_policy:
34 condition: any
35 image: ${_param:docker_image_aptly:public}
36 ports:
37 - 18085:80
38 volumes:
39 - /srv/volumes/aptly/public:/var/www/html